fix(compiler): Implement Token#toString for Operator

Include a case for `TokenType.Operator`.

Closes #4049
This commit is contained in:
Tim Blasi 2015-09-08 09:37:17 -07:00
parent a8bdb693b9
commit 3b9c08676a
1 changed files with 2 additions and 1 deletions

View File

@ -75,9 +75,10 @@ export class Token {
toString(): string { toString(): string {
switch (this.type) { switch (this.type) {
case TokenType.Character: case TokenType.Character:
case TokenType.String:
case TokenType.Identifier: case TokenType.Identifier:
case TokenType.Keyword: case TokenType.Keyword:
case TokenType.Operator:
case TokenType.String:
return this.strValue; return this.strValue;
case TokenType.Number: case TokenType.Number:
return this.numValue.toString(); return this.numValue.toString();