//---------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
namespace System.Data.Common.EntitySql.AST
{
using System;
using System.Globalization;
using System.Collections;
using System.Collections.Generic;
///
/// Represents query statement AST.
///
internal sealed class QueryStatement : Statement
{
private readonly NodeList _functionDefList;
private readonly Node _expr;
///
/// Initializes query statement.
///
/// optional function definitions
/// query top level expression
internal QueryStatement(NodeList functionDefList, Node expr)
{
_functionDefList = functionDefList;
_expr = expr;
}
///
/// Returns optional function defintions. May be null.
///
internal NodeList FunctionDefList
{
get { return _functionDefList; }
}
///
/// Returns query top-level expression.
///
internal Node Expr
{
get { return _expr; }
}
}
}