public TokenGrammarElement ToElement(CSharpAstTokenCode code) { TokenGrammarElement definition; if (!TokenMapping.TryGetValue((int)code, out definition)) { TokenMapping.Add((int)code, definition = new TokenGrammarElement(code.ToString())); } return definition; }
public CSharpAstToken(CSharpAstTokenCode code, string value, TextRange range) : base(value, range) { Code = code; }
public CSharpAstToken(CSharpAstTokenCode code, string value) : this(code, value, TextRange.Empty) { }