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