(start: number)
| 423 | } |
| 424 | |
| 425 | private scanEquals(start: number): Token { |
| 426 | this.advance(); |
| 427 | let str: string = '='; |
| 428 | if (this.peek === chars.$EQ) { |
| 429 | this.advance(); |
| 430 | str += '='; |
| 431 | } else if (this.peek === chars.$GT) { |
| 432 | this.advance(); |
| 433 | str += '>'; |
| 434 | return newOperatorToken(start, this.index, str); |
| 435 | } |
| 436 | if (this.peek === chars.$EQ) { |
| 437 | this.advance(); |
| 438 | str += '='; |
| 439 | } |
| 440 | return newOperatorToken(start, this.index, str); |
| 441 | } |
| 442 | |
| 443 | private scanIdentifier(): Token { |
| 444 | const start: number = this.index; |
no test coverage detected