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

Method bindVariableDeclarationFlow

internal/binder/binder.go:2314–2319  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

2312}
2313
2314func (b *Binder) bindVariableDeclarationFlow(node *ast.Node) {
2315 b.bindEachChild(node)
2316 if node.Initializer() != nil || ast.IsForInOrOfStatement(node.Parent.Parent) {
2317 b.bindInitializedVariableFlow(node)
2318 }
2319}
2320
2321func (b *Binder) bindInitializedVariableFlow(node *ast.Node) {
2322 var name *ast.Node

Callers 1

bindChildrenMethod · 0.95

Calls 4

bindEachChildMethod · 0.95
IsForInOrOfStatementFunction · 0.92
InitializerMethod · 0.80

Tested by

no test coverage detected