public override void Visit(RemoveAllQueryNode node)
 {
     if (CheckDeclared(node.Variable))
     {
         if (node.WhereCondition != null)
         {
             node.WhereCondition.Accept(this);
         }
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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();
 }
Esempio n. 5
0
 public abstract void Visit(RemoveAllQueryNode node);