Antlr3.Tool.Grammar.ReferenceRuleLabelPredefinedAttribute C# (CSharp) Méthode

ReferenceRuleLabelPredefinedAttribute() public méthode

public ReferenceRuleLabelPredefinedAttribute ( string ruleName ) : void
ruleName string
Résultat 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