Home | History | Annotate | Download | only in Antlr3.Runtime

Lines Matching defs:TokenNames

68         public MismatchedTokenException(int expecting, IIntStream input, IList<string> tokenNames)
73 if (tokenNames != null)
74 this._tokenNames = new List<string>(tokenNames).AsReadOnly();
77 public MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames)
82 if (tokenNames != null)
83 this._tokenNames = new List<string>(tokenNames).AsReadOnly();
86 public MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception innerException)
91 if (tokenNames != null)
92 this._tokenNames = new List<string>(tokenNames).AsReadOnly();
102 this._tokenNames = new ReadOnlyCollection<string>((string[])info.GetValue("TokenNames", typeof(string[])));
113 public ReadOnlyCollection<string> TokenNames
128 info.AddValue("TokenNames", (_tokenNames != null) ? new List<string>(_tokenNames).ToArray() : default(string[]));
134 string unexpected = ( TokenNames != null && unexpectedType >= 0 && unexpectedType < TokenNames.Count ) ? TokenNames[unexpectedType] : unexpectedType.ToString();
135 string expected = ( TokenNames != null && Expecting >= 0 && Expecting < TokenNames.Count ) ? TokenNames[Expecting] : Expecting.ToString();