(inExpressionContext bool)
| 5049 | } |
| 5050 | |
| 5051 | func (p *Parser) parseJsxClosingFragment(inExpressionContext bool) *ast.Node { |
| 5052 | pos := p.nodePos() |
| 5053 | p.parseExpected(ast.KindLessThanSlashToken) |
| 5054 | if p.parseExpectedWithDiagnostic(ast.KindGreaterThanToken, diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment, false /*shouldAdvance*/) { |
| 5055 | // manually advance the scanner in order to look for jsx text inside jsx |
| 5056 | if inExpressionContext { |
| 5057 | p.nextToken() |
| 5058 | } else { |
| 5059 | p.scanJsxText() |
| 5060 | } |
| 5061 | } |
| 5062 | return p.finishNode(p.factory.NewJsxClosingFragment(), pos) |
| 5063 | } |
| 5064 | |
| 5065 | func (p *Parser) parseSimpleUnaryExpression() *ast.Expression { |
| 5066 | switch p.token { |
no test coverage detected