MCPcopy
hub / github.com/microsoft/typescript-go / NewNodeBuilderEx

Function NewNodeBuilderEx

internal/checker/nodebuilder.go:283–286  ·  view source on GitHub ↗
(ch *Checker, e *printer.EmitContext, idToSymbol map[*ast.IdentifierNode]*ast.Symbol)

Source from the content-addressed store, hash-verified

281}
282
283func NewNodeBuilderEx(ch *Checker, e *printer.EmitContext, idToSymbol map[*ast.IdentifierNode]*ast.Symbol) *NodeBuilder {
284 impl := newNodeBuilderImpl(ch, e, idToSymbol)
285 return &NodeBuilder{impl: impl, ctxStack: make([]*NodeBuilderContext, 0, 1), host: ch.program}
286}
287
288func (c *Checker) getNodeBuilder() (*NodeBuilder, func()) {
289 releaseNodes := func() {

Callers 4

createNodeBuilderMethod · 0.92
NewNodeBuilderFunction · 0.85
getNodeBuilderExMethod · 0.85

Calls 2

newNodeBuilderImplFunction · 0.85
makeFunction · 0.50

Tested by

no test coverage detected