()
| 408 | } |
| 409 | |
| 410 | parseJSXExpressionAttribute(): JSXNode.JSXExpressionContainer { |
| 411 | const node = this.createJSXNode(); |
| 412 | |
| 413 | this.expectJSX('{'); |
| 414 | this.finishJSX(); |
| 415 | |
| 416 | if (this.match('}')) { |
| 417 | this.tolerateError('JSX attributes must only be assigned a non-empty expression'); |
| 418 | } |
| 419 | |
| 420 | const expression = this.parseAssignmentExpression(); |
| 421 | this.reenterJSX(); |
| 422 | |
| 423 | return this.finalize(node, new JSXNode.JSXExpressionContainer(expression)); |
| 424 | } |
| 425 | |
| 426 | parseJSXAttributeValue(): JSXNode.JSXAttributeValue { |
| 427 | return this.matchJSX('{') ? this.parseJSXExpressionAttribute() : |
no test coverage detected