(term: string)
| 73 | } |
| 74 | |
| 75 | tryParse(term: string): boolean { |
| 76 | this.consumeWhitespaces(); |
| 77 | |
| 78 | for (let i = 0; i < term.length; i++) { |
| 79 | if (term.charCodeAt(i) !== this.text.charCodeAt(this.position + i)) { |
| 80 | return false; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | this.position += term.length; |
| 85 | return true; |
| 86 | } |
| 87 | |
| 88 | private isIdentifier(position: number): boolean { |
| 89 | const code = this.text.charCodeAt(position); |
no test coverage detected