Antlr4.Tool.AttributeDict.Add C# (CSharp) 메소드

Add() 공개 메소드

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

Usage 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