public override void Visit(RemoveAllQueryNode node) { if (CheckDeclared(node.Variable)) { if (node.WhereCondition != null) { node.WhereCondition.Accept(this); } } }
public override AbstractNode VisitRemoveAllQuery([NotNull] GiraphParser.RemoveAllQueryContext context) { RemoveAllQueryNode removeAllQueryNode = new RemoveAllQueryNode(context.Start.Line, context.Start.Column); removeAllQueryNode.Variable = context.variable().GetText(); if (context.where () != null) { removeAllQueryNode.WhereCondition = Visit(context.where ()); } return(removeAllQueryNode); }
public override void Visit(RemoveAllQueryNode node) { _symbolTable.SetCurrentNode(node); var type = _symbolTable.RetrieveSymbol(node.Variable, out bool IsCollection); if (IsCollection != true) { _symbolTable.NotCollection(node.Variable); } if (node.WhereCondition != null) { (node.WhereCondition as WhereNode).Type = type.ToString().ToLower(); } }
public override void Visit(RemoveAllQueryNode node) { throw new NotImplementedException(); }
public abstract void Visit(RemoveAllQueryNode node);