diff options
1 files changed, 0 insertions, 42 deletions
| -rw-r--r-- | homework/81709/JSCompiler.Core/NumToken.cs | 42 |
diff --git a/homework/81709/JSCompiler.Core/NumToken.cs b/homework/81709/JSCompiler.Core/NumToken.cs deleted file mode 100644 index 53af034..0000000 --- a/homework/81709/JSCompiler.Core/NumToken.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace JSCompiler.Core -{ - public class NumToken : Token, IEquatable<NumToken> - { - public NumToken(long num) : base(TokenType.Number) - { - Num = num; - } - - public long Num { get; private set; } - - public bool Equals(NumToken other) - { - return other.Num == Num && base.Equals((Token)other); - } - - public override bool Equals(object obj) - { - var item = obj as NumToken; - - if (item == null) return false; - - return Equals(item); - } - - public override int GetHashCode() - { - return Num.GetHashCode() * 17 + base.GetHashCode(); - } - - public override string ToString() - { - return Num.ToString(); - } - } -} |
