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

Method parseTypeOperator

internal/parser/parser.go:2688–2692  ·  view source on GitHub ↗
(operator ast.Kind)

Source from the content-addressed store, hash-verified

2686}
2687
2688func (p *Parser) parseTypeOperator(operator ast.Kind) *ast.Node {
2689 pos := p.nodePos()
2690 p.parseExpected(operator)
2691 return p.finishNode(p.factory.NewTypeOperatorNode(operator, p.parseTypeOperatorOrHigher()), pos)
2692}
2693
2694func (p *Parser) parseInferType() *ast.Node {
2695 pos := p.nodePos()

Callers 1

Calls 5

nodePosMethod · 0.95
parseExpectedMethod · 0.95
finishNodeMethod · 0.95
NewTypeOperatorNodeMethod · 0.80

Tested by

no test coverage detected