MCPcopy Index your code
hub / github.com/microsoft/typescript-go / shouldReuseTempVariableScope

Method shouldReuseTempVariableScope

internal/printer/printer.go:5959–5961  ·  view source on GitHub ↗

Name Generation

(node *ast.Node)

Source from the content-addressed store, hash-verified

5957//
5958
5959func (p *Printer) shouldReuseTempVariableScope(node *ast.Node) bool {
5960 return node != nil && p.emitContext.EmitFlags(node)&EFReuseTempVariableScope != 0
5961}
5962
5963func (p *Printer) pushNameGenerationScope(node *ast.Node) {
5964 p.nameGenerator.PushScope(p.shouldReuseTempVariableScope(node))

Callers 3

generateNamesMethod · 0.95

Calls 1

EmitFlagsMethod · 0.80

Tested by

no test coverage detected