fix(compiler): Implement Token#toString for Operator
Include a case for `TokenType.Operator`. Closes #4049
This commit is contained in:
parent
a8bdb693b9
commit
3b9c08676a
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue