public EachLoopAstNode(Token token, IdentifierAstNode loopVariableNode, IdentifierAstNode enumerableVariableNode, AstNode loopBodyNode) { Token = token; LoopVariableNode = loopVariableNode; EnumerableVariableNode = enumerableVariableNode; LoopBodyNode = loopBodyNode; }
public IdentifierAstNode(Token token, IdentifierAstNode memberIdentifier = null) { Token = token; Name = token.Value; if (memberIdentifier != null) { MemberIdentifier = memberIdentifier; _children.Add(MemberIdentifier); } }
public IdentifierVariableAccessAstNode(Token token, IdentifierAstNode memberIdentifier = null) : base(token, memberIdentifier) { }
public IdentifierProcedureCallAstNode(Token token, IEnumerable <AstNode> paramsList, IdentifierAstNode memberIdentifier = null) : base(token, memberIdentifier) { _params.AddRange(paramsList); }
public IdentifierProcedureCallAstNode(Token token, IdentifierAstNode memberIdentifier = null) : base(token, memberIdentifier) { }