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

Method emitTypeNodeInExtends

internal/printer/printer.go:2254–2259  ·  view source on GitHub ↗

emits a Type node in the `extends` clause of a ConditionalType

(node *ast.TypeNode)

Source from the content-addressed store, hash-verified

2252
2253// emits a Type node in the `extends` clause of a ConditionalType
2254func (p *Printer) emitTypeNodeInExtends(node *ast.TypeNode) {
2255 savedInExtends := p.inExtends
2256 p.inExtends = true
2257 p.emitTypeNodePreservingExtends(node, ast.TypePrecedenceLowest)
2258 p.inExtends = savedInExtends
2259}
2260
2261// emits a Type node not in the `extends` clause of a ConditionalType or InferType
2262func (p *Printer) emitTypeNodeOutsideExtends(node *ast.TypeNode) {

Callers 2

emitConditionalTypeMethod · 0.95

Calls 1

Tested by

no test coverage detected