( P: ParseState, stop: string, mode: ArithMode, )
| 4296 | } |
| 4297 | |
| 4298 | function parseArithPostfix( |
| 4299 | P: ParseState, |
| 4300 | stop: string, |
| 4301 | mode: ArithMode, |
| 4302 | ): TsNode | null { |
| 4303 | const prim = parseArithPrimary(P, stop, mode) |
| 4304 | if (!prim) return null |
| 4305 | const c = peek(P.L) |
| 4306 | const c1 = peek(P.L, 1) |
| 4307 | if ((c === '+' && c1 === '+') || (c === '-' && c1 === '-')) { |
| 4308 | const s = P.L.b |
| 4309 | advance(P.L) |
| 4310 | advance(P.L) |
| 4311 | const op = mk(P, c + c1, s, P.L.b, []) |
| 4312 | return mk(P, 'postfix_expression', prim.startIndex, op.endIndex, [prim, op]) |
| 4313 | } |
| 4314 | return prim |
| 4315 | } |
| 4316 | |
| 4317 | function parseArithPrimary( |
| 4318 | P: ParseState, |
no test coverage detected