Пример #1
0
 public IfNode(SourcePosition position, ExpressionNode condition, StatementNode @true, StatementNode @false) : base(position)
 {
     Condition = condition;
     True      = @true;
     False     = @false;
 }
Пример #2
0
 public ForIteratorNode(SourcePosition position, IdentNode iterator, ExpressionNode from, StatementNode code) : base(position)
 {
     Iterator = iterator;
     From     = from;
     Code     = code;
 }
Пример #3
0
 public void AddStatement(StatementNode statement)
 {
     statements.Add(statement);
 }
Пример #4
0
 public DeferNode(SourcePosition position, StatementNode code) : base(position)
 {
     Code = code;
     ID   = currentID++;
 }
Пример #5
0
 public WhileNode(SourcePosition position, ExpressionNode condition, StatementNode code) : base(position)
 {
     Condition = condition;
     Code      = code;
 }
Пример #6
0
 public ForKeyValueIteratorNode(SourcePosition position, IdentNode key, IdentNode value, ExpressionNode from, StatementNode code) : base(position)
 {
     Key   = key;
     Value = value;
     From  = from;
     Code  = code;
 }