(
this: Parser,
refExpressionErrors?: ExpressionErrors,
)
| 211 | |
| 212 | // https://tc39.es/ecma262/#prod-Expression |
| 213 | parseExpressionBase( |
| 214 | this: Parser, |
| 215 | refExpressionErrors?: ExpressionErrors, |
| 216 | ): N.Expression { |
| 217 | const startLoc = this.state.startLoc; |
| 218 | const expr = this.parseMaybeAssign(refExpressionErrors); |
| 219 | if (this.match(tt.comma)) { |
| 220 | const node = this.startNodeAt<N.SequenceExpression>(startLoc); |
| 221 | node.expressions = [expr]; |
| 222 | while (this.eat(tt.comma)) { |
| 223 | node.expressions.push(this.parseMaybeAssign(refExpressionErrors)); |
| 224 | } |
| 225 | this.toReferencedList(node.expressions); |
| 226 | return this.finishNode(node, "SequenceExpression"); |
| 227 | } |
| 228 | return expr; |
| 229 | } |
| 230 | |
| 231 | // Set [~In] parameter for assignment expression |
| 232 | parseMaybeAssignDisallowIn( |
nothing calls this directly
no test coverage detected