MCPcopy Create free account
hub / github.com/microsoft/typescript-go / parseIntersectionTypeOrHigher

Method parseIntersectionTypeOrHigher

internal/parser/parser.go:2640–2642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2638}
2639
2640func (p *Parser) parseIntersectionTypeOrHigher() *ast.TypeNode {
2641 return p.parseUnionOrIntersectionType(ast.KindAmpersandToken, (*Parser).parseTypeOperatorOrHigher)
2642}
2643
2644func (p *Parser) parseUnionOrIntersectionType(operator ast.Kind, parseConstituentType func(p *Parser) *ast.TypeNode) *ast.TypeNode {
2645 pos := p.nodePos()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected