Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Data.Entity / System / Data / Common / EntitySql / AST / QueryStatement.cs
1 //---------------------------------------------------------------------
2 // <copyright file="QueryStatement.cs" company="Microsoft">
3 //      Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //
6 // @owner  Microsoft
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
9
10 namespace System.Data.Common.EntitySql.AST
11 {
12     using System;
13     using System.Globalization;
14     using System.Collections;
15     using System.Collections.Generic;
16
17     /// <summary>
18     /// Represents query statement AST. 
19     /// </summary>
20     internal sealed class QueryStatement : Statement
21     {
22         private readonly NodeList<FunctionDefinition> _functionDefList;
23         private readonly Node _expr;
24
25         /// <summary>
26         /// Initializes query statement.
27         /// </summary>
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)
31         {
32             _functionDefList = functionDefList;
33             _expr = expr;
34         }
35
36         /// <summary>
37         /// Returns optional function defintions. May be null.
38         /// </summary>
39         internal NodeList<FunctionDefinition> FunctionDefList
40         {
41             get { return _functionDefList; }
42         }
43
44         /// <summary>
45         /// Returns query top-level expression.
46         /// </summary>
47         internal Node Expr
48         {
49             get { return _expr; }
50         }
51     }
52 }