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

Function NewEmitContext

internal/printer/emitcontext.go:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func NewEmitContext() *EmitContext {
46 c := &EmitContext{}
47 c.Factory = NewNodeFactory(c)
48 return c
49}
50
51var emitContextPool = sync.Pool{
52 New: func() any {

Calls 1

NewNodeFactoryFunction · 0.70

Tested by 15

TestNameGenerationFunction · 0.74
TestTempVariable1Function · 0.74
TestTempVariable2Function · 0.74
TestTempVariable3Function · 0.74
TestTempVariableScopedFunction · 0.74
TestLoopVariable1Function · 0.74
TestLoopVariable2Function · 0.74
TestLoopVariable3Function · 0.74