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