Antlr4.Runtime.Tree.Pattern.RuleTagToken.RuleTagToken C# (CSharp) Метод

RuleTagToken() публичный Метод

Constructs a new instance of RuleTagToken with the specified rule name, bypass token type, and label.
/// IllegalArgumentException /// if /// /// is /// /// or empty. ///
public RuleTagToken ( string ruleName, int bypassTokenType, string label ) : System
ruleName string The name of the parser rule this rule tag matches.
bypassTokenType int The bypass token type assigned to the parser rule.
label string /// The label associated with the rule tag, or /// /// if /// the rule tag is unlabeled. ///
Результат System
        public RuleTagToken(string ruleName, int bypassTokenType, string label)
        {
            if (string.IsNullOrEmpty(ruleName))
            {
                throw new ArgumentException("ruleName cannot be null or empty.");
            }
            this.ruleName = ruleName;
            this.bypassTokenType = bypassTokenType;
            this.label = label;
        }

Same methods

RuleTagToken::RuleTagToken ( string ruleName, int bypassTokenType ) : System