18 using System.Collections.Generic;
21 namespace Deveel.Data.Sql.Parser {
23 public IEnumerable<IStatementNode> Statements {
get;
private set; }
25 public IEnumerable<ExceptionHandlerNode> ExceptionHandlers {
get;
private set; }
28 if (node.
NodeName.Equals(
"plsql_statement_list")) {
30 }
else if (node.
NodeName.Equals(
"exception_block_opt")) {
38 var statements =
new List<IStatementNode>();
39 foreach (var childNode
in node.ChildNodes) {
40 if (childNode.NodeName.Equals(
"plsql_statement")) {
41 statements.AddRange(childNode.ChildNodes.OfType<
IStatementNode>());
45 Statements = statements.ToArray();
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
string NodeName
Gets the name of the node analyzed from the parser.
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
void GetStatements(ISqlNode node)
The default implementation of ISqlNode, that is a node in the text analysis parsing of SQL commands...