()
| 2698 | } |
| 2699 | |
| 2700 | func (p *Parser) parseTypeParameterOfInferType() *ast.Node { |
| 2701 | pos := p.nodePos() |
| 2702 | name := p.parseIdentifier() |
| 2703 | constraint := p.tryParseConstraintOfInferType() |
| 2704 | return p.finishNode(p.factory.NewTypeParameterDeclaration(nil /*modifiers*/, name, constraint, nil /*expression*/, nil /*defaultType*/), pos) |
| 2705 | } |
| 2706 | |
| 2707 | func (p *Parser) tryParseConstraintOfInferType() *ast.Node { |
| 2708 | state := p.mark() |
no test coverage detected