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

Method bindFunctionDeclaration

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

Source from the content-addressed store, hash-verified

1215}
1216
1217func (b *Binder) bindFunctionDeclaration(node *ast.Node) {
1218 if !b.file.IsDeclarationFile && node.Flags&ast.NodeFlagsAmbient == 0 && ast.IsAsyncFunction(node) {
1219 b.emitFlags |= ast.NodeFlagsHasAsyncFunctions
1220 }
1221 b.checkStrictModeFunctionName(node)
1222 b.bindBlockScopedDeclaration(node, ast.SymbolFlagsFunction, ast.SymbolFlagsFunctionExcludes)
1223}
1224
1225func (b *Binder) getInferTypeContainer(node *ast.Node) *ast.Node {
1226 extendsType := ast.FindAncestor(node, func(n *ast.Node) bool {

Callers 1

bindMethod · 0.95

Calls 3

IsAsyncFunctionFunction · 0.92

Tested by

no test coverage detected