MCPcopy Index your code
hub / github.com/microsoft/typescript-go / parseInferType

Method parseInferType

internal/parser/parser.go:2694–2698  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2692}
2693
2694func (p *Parser) parseInferType() *ast.Node {
2695 pos := p.nodePos()
2696 p.parseExpected(ast.KindInferKeyword)
2697 return p.finishNode(p.factory.NewInferTypeNode(p.parseTypeParameterOfInferType()), pos)
2698}
2699
2700func (p *Parser) parseTypeParameterOfInferType() *ast.Node {
2701 pos := p.nodePos()

Callers 1

Calls 5

nodePosMethod · 0.95
parseExpectedMethod · 0.95
finishNodeMethod · 0.95
NewInferTypeNodeMethod · 0.80

Tested by

no test coverage detected