public override object Visit(ConstantFieldDefinition node, object obj) { base.Visit(node, obj); if (node.Location == ((AstNode)obj).Location || found) { found = true; } return(this.table); }
public override Object Visit(ConstantFieldDefinition node, Object obj) { int indent = Convert.ToInt32(obj); this.printIndentation(indent); this.output.WriteLine("Constant Field: {0} [{1}:{2}]", node.Identifier, node.Location.Line, node.Location.Column); this.printIndentation(indent + 1); this.output.Write("Type: "); this.output.WriteLine(printType(node.TypeExpr)); return(node.Init.Accept(this, indent + 1)); }
public override Object Visit(ConstantFieldDefinition node, Object obj) { node.Init.Accept(this, obj); return(null); }
public override Object Visit(ConstantFieldDefinition node, Object obj) { return(this.builtField(node)); }
public override Object Visit(ConstantFieldDefinition node, Object obj) { node.FullName = getMemberIdentifier(node); return(null); }
public abstract Object Visit(ConstantFieldDefinition node, Object obj);
/// <summary> /// Constructor /// </summary> /// <param name="codeGenerator">stream to write to</param> /// <param name="node">node representing the constant field definition</param> /// <param name="argument">argument</param> public CGConstantFieldDefinitionInitializationOperation(T codeGenerator, ConstantFieldDefinition node, object argument) { this.codeGenerator = codeGenerator; this.node = node; this.argument = argument; }