(s: string, i: number, end: number)
| 2148 | |
| 2149 | // Returns the end of the name that is required at `i` |
| 2150 | private name(s: string, i: number, end: number): number { |
| 2151 | const nameEnd = scanName(s, i, end) |
| 2152 | if (nameEnd === i) throw this.syntax("expected a name", i) |
| 2153 | return nameEnd |
| 2154 | } |
| 2155 | |
| 2156 | // Reads the quoted literal at `i`, and sets `literalEnd` to the index after it |
| 2157 | private literal(s: string, i: number, end: number): string { |
no test coverage detected