예제 #1
0
        public override ImperativeNode VisitIdentifierNode(AST.ImperativeAST.IdentifierNode node)
        {
            if (node.ArrayDimensions != null)
            {
                var newArrayDimensions = node.ArrayDimensions.Accept(this);
                if (node.ArrayDimensions != newArrayDimensions)
                {
                    node.ArrayDimensions = newArrayDimensions as AST.ImperativeAST.ArrayNode;
                }
            }

            return(node);
        }
예제 #2
0
 public virtual TImperative VisitIdentifierNode(AST.ImperativeAST.IdentifierNode node)
 {
     return(VisitImperativeNode(node));
 }
예제 #3
0
파일: Parser.cs 프로젝트: limrzx/Dynamo
 private AST.ImperativeAST.IdentifierNode BuildImperativeIdentifier(string name, ProtoCore.PrimitiveType type = ProtoCore.PrimitiveType.Var)
 {
     var ident = new AST.ImperativeAST.IdentifierNode();
     ident.Name = ident.Value = name;
     ident.DataType = TypeSystem.BuildPrimitiveTypeObject(type, 0);
     return ident;
 }