Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
57
func
GetEmitContext() (*EmitContext,
func
()) {
58
c := emitContextPool.Get().(*EmitContext)
59
return
c,
func
() {
60
c.Reset()
61
emitContextPool.Put(c)
62
}
63
}
64
65
func
(c *EmitContext) Reset() {
66
*c = EmitContext{
Callers
nothing calls this directly
Calls
3
Put
Method · 0.80
Get
Method · 0.65
Reset
Method · 0.45
Tested by
no test coverage detected