Example #1
0
 protected void AddToken(Token token)
 {
     token.Row = _row;
     token.Column = _column - 1;
     Tokens.Add(token);
 }
Example #2
0
 /// <summary>
 ///   Indicates whether this instance and a specified token are equal.
 /// </summary>
 /// <returns>
 ///   true if <paramref name = "other" /> and this instance are the same type and represent the same value; otherwise, false.
 /// </returns>
 /// <param name = "other">Another object to compare to. </param>
 /// <filterpriority>2</filterpriority>
 public bool Equals(Token other)
 {
     return Equals(other.Type, Type) && Equals(other.Data, Data);
 }