Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
45
func
NewEmitContext() *EmitContext {
46
c := &EmitContext{}
47
c.Factory = NewNodeFactory(c)
48
return
c
49
}
50
51
var
emitContextPool = sync.Pool{
52
New:
func
() any {
Callers
15
getQuickInfoAndDeclarationAtLocation
Function · 0.92
getJSDocParamAnnotation
Function · 0.92
returnTypeToDisplayParts
Function · 0.92
itemInfoForTypeParameters
Method · 0.92
itemInfoForParameters
Method · 0.92
createSignatureHelpParameterForParameter
Method · 0.92
createSignatureHelpParameterForTypeParameter
Function · 0.92
NewTracker
Function · 0.92
TestNameGeneration
Function · 0.92
TestNoTrailingCommaAfterTransform
Function · 0.92
TestTrailingCommaAfterTransform
Function · 0.92
TestPartiallyEmittedExpression
Function · 0.92
Calls
1
NewNodeFactory
Function · 0.70
Tested by
15
TestNameGeneration
Function · 0.74
TestNoTrailingCommaAfterTransform
Function · 0.74
TestTrailingCommaAfterTransform
Function · 0.74
TestPartiallyEmittedExpression
Function · 0.74
TestTempVariable1
Function · 0.74
TestTempVariable2
Function · 0.74
TestTempVariable3
Function · 0.74
TestTempVariableScoped
Function · 0.74
TestTempVariableScopedReserved
Function · 0.74
TestLoopVariable1
Function · 0.74
TestLoopVariable2
Function · 0.74
TestLoopVariable3
Function · 0.74