public void Visit(Block node)
 {
     foreach (ElementBase child in node.Children)
     {
         child.Accept(this);
     }
 }
Exemple #2
0
        public override void ExitBlock(QLParser.BlockContext context)
        {
            IList<ElementBase> children = GetChildren();

            Block block = new Block(children, SourceLocation.CreateFor(context));
            AppendToAST(block);
        }
Exemple #3
0
 public Form(Identifier identifier, Block block, SourceLocation sourceLocation)
     : this(identifier, block)
 {
     SourceLocation = sourceLocation;
 }
Exemple #4
0
 public Form(Identifier identifier, Block block)
 {
     Identifier = identifier;
     Block = block;
 }