18 using System.Collections.Generic;
23 namespace Deveel.Data.Sql.Parser {
25 public IEnumerable<string> Grantees {
get;
private set; }
27 public IEnumerable<string> Roles {
get;
private set; }
29 public bool WithAdmin {
get;
private set; }
32 if (node.
NodeName.Equals(
"role_list")) {
34 }
else if (node.
NodeName.Equals(
"distribution_list")) {
36 }
else if (node.
NodeName.Equals(
"with_admin_opt")) {
40 return base.OnChildNode(node);
57 foreach (var grantee
in Grantees) {
58 foreach (var role
in Roles) {
This is a simple identifier within a SQL grammar.
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.
void GetRoleList(ISqlNode node)
void GetGrantees(ISqlNode node)
override void BuildStatement(StatementBuilder builder)
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
IEnumerable< ISqlNode > ChildNodes
Gets a read-only enumeration of the children nodes, if any.
void GetWithAdmin(ISqlNode node)