Antlr4.Tool.AttributeDict.Add C# (CSharp) Method

Add() public method

public Add ( Attribute a ) : Attribute
a Attribute
return Attribute
        public virtual Attribute Add(Attribute a)
        {
            a.dict = this;
            return attributes[a.name] = a;
        }

Usage Example

Example #1
0
 static Rule()
 {
     predefinedRulePropertiesDict.Add(new Attribute("parser"));
     predefinedRulePropertiesDict.Add(new Attribute("text"));
     predefinedRulePropertiesDict.Add(new Attribute("start"));
     predefinedRulePropertiesDict.Add(new Attribute("stop"));
     predefinedRulePropertiesDict.Add(new Attribute("ctx"));
 }
All Usage Examples Of Antlr4.Tool.AttributeDict::Add