1 //---------------------------------------------------------------------
2 // <copyright file="QueryStatement.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
10 namespace System.Data.Common.EntitySql.AST
13 using System.Globalization;
14 using System.Collections;
15 using System.Collections.Generic;
18 /// Represents query statement AST.
20 internal sealed class QueryStatement : Statement
22 private readonly NodeList<FunctionDefinition> _functionDefList;
23 private readonly Node _expr;
26 /// Initializes query statement.
28 /// <param name="functionDefList">optional function definitions</param>
29 /// <param name="statement">query top level expression</param>
30 internal QueryStatement(NodeList<FunctionDefinition> functionDefList, Node expr)
32 _functionDefList = functionDefList;
37 /// Returns optional function defintions. May be null.
39 internal NodeList<FunctionDefinition> FunctionDefList
41 get { return _functionDefList; }
45 /// Returns query top-level expression.