Example #1
0
 public DeclarationNode(LeafParser.Var_def_tContext ctx)
 {
     Line    = ctx.Start.Line;
     _name   = ctx.Id().GetText();
     Mutable = ctx.Var() != null;
     Type    = TypeNode.Create(ctx.type(0));
     if (ctx.type(1) != null)
     {
         Allocator = TypeNode.Create(ctx.type(1));
     }
 }