18 using System.Collections.Generic;
21 namespace Deveel.Data.Sql.Parser {
26 statementNodes =
new List<IStatementNode>();
29 public IEnumerable<IStatementNode> Statements {
30 get {
return statementNodes.AsEnumerable(); }
35 return base.OnChildNode(node);
39 foreach (var node
in nodes) {
41 statementNodes.Add(node as IStatementNode);
43 ReadStatements(node.ChildNodes);
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
void ReadStatements(IEnumerable< ISqlNode > nodes)
SequenceOfStatementsNode()
IEnumerable< ISqlNode > ChildNodes
Gets a read-only enumeration of the children nodes, if any.
readonly ICollection< IStatementNode > statementNodes
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
The default implementation of ISqlNode, that is a node in the text analysis parsing of SQL commands...