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