Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public virtual TImperative VisitIdentifierNode(AST.ImperativeAST.IdentifierNode node)
 {
     return(VisitImperativeNode(node));
 }
Exemplo n.º 3
0
 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;
 }