public override object Visit(ConstantFieldDefinition node, object obj)
        {
            base.Visit(node, obj);

            if (node.Location == ((AstNode)obj).Location || found)
            {
                found = true;
            }
            return(this.table);
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 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));
 }
Esempio n. 5
0
 public override Object Visit(ConstantFieldDefinition node, Object obj)
 {
     node.FullName = getMemberIdentifier(node);
     return(null);
 }
Esempio n. 6
0
 public abstract Object Visit(ConstantFieldDefinition node, Object obj);
Esempio n. 7
0
 /// <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;
 }