Esempio n. 1
0
 public EachLoopAstNode(Token token, IdentifierAstNode loopVariableNode, IdentifierAstNode enumerableVariableNode,
                        AstNode loopBodyNode)
 {
     Token                  = token;
     LoopVariableNode       = loopVariableNode;
     EnumerableVariableNode = enumerableVariableNode;
     LoopBodyNode           = loopBodyNode;
 }
Esempio n. 2
0
        public IdentifierAstNode(Token token, IdentifierAstNode memberIdentifier = null)
        {
            Token = token;
            Name  = token.Value;

            if (memberIdentifier != null)
            {
                MemberIdentifier = memberIdentifier;
                _children.Add(MemberIdentifier);
            }
        }
Esempio n. 3
0
 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)
 {
 }