Antlr3.Tool.Grammar.ReferenceRuleLabelPredefinedAttribute C# (CSharp) Method

ReferenceRuleLabelPredefinedAttribute() public method

public ReferenceRuleLabelPredefinedAttribute ( string ruleName ) : void
ruleName string
return void
        public virtual void ReferenceRuleLabelPredefinedAttribute( string ruleName )
        {
            Rule r = GetRule( ruleName );
            if ( r != null && type != GrammarType.Lexer )
            {
                // indicate that an action ref'd an attr unless it's in a lexer
                // so that $ID.text refs don't force lexer rules to define
                // return values...Token objects are created by the caller instead.
                r.ReferencedPredefinedRuleAttributes = true;
            }
        }
Grammar