Top-level: comma-separated list. arithmetic_expansion emits multiple children.
( P: ParseState, stop: string, mode: ArithMode = 'var', )
| 4136 | |
| 4137 | /** Top-level: comma-separated list. arithmetic_expansion emits multiple children. */ |
| 4138 | function parseArithCommaList( |
| 4139 | P: ParseState, |
| 4140 | stop: string, |
| 4141 | mode: ArithMode = 'var', |
| 4142 | ): TsNode[] { |
| 4143 | const out: TsNode[] = [] |
| 4144 | while (true) { |
| 4145 | const e = parseArithTernary(P, stop, mode) |
| 4146 | if (e) out.push(e) |
| 4147 | skipBlanks(P.L) |
| 4148 | if (peek(P.L) === ',' && !isArithStop(P, stop)) { |
| 4149 | advance(P.L) |
| 4150 | continue |
| 4151 | } |
| 4152 | break |
| 4153 | } |
| 4154 | return out |
| 4155 | } |
| 4156 | |
| 4157 | function parseArithTernary( |
| 4158 | P: ParseState, |
no test coverage detected