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

Function GetEmitContext

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

Source from the content-addressed store, hash-verified

55}
56
57func GetEmitContext() (*EmitContext, func()) {
58 c := emitContextPool.Get().(*EmitContext)
59 return c, func() {
60 c.Reset()
61 emitContextPool.Put(c)
62 }
63}
64
65func (c *EmitContext) Reset() {
66 *c = EmitContext{

Callers

nothing calls this directly

Calls 3

PutMethod · 0.80
GetMethod · 0.65
ResetMethod · 0.45

Tested by

no test coverage detected