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

Method declareModuleSymbol

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

Source from the content-addressed store, hash-verified

816}
817
818func (b *Binder) declareModuleSymbol(node *ast.Node) ast.ModuleInstanceState {
819 state := ast.GetModuleInstanceState(node)
820 instantiated := state != ast.ModuleInstanceStateNonInstantiated
821 b.declareSymbolAndAddToSymbolTable(node, core.IfElse(instantiated, ast.SymbolFlagsValueModule, ast.SymbolFlagsNamespaceModule), core.IfElse(instantiated, ast.SymbolFlagsValueModuleExcludes, ast.SymbolFlagsNamespaceModuleExcludes))
822 return state
823}
824
825func (b *Binder) bindNamespaceExportDeclaration(node *ast.Node) {
826 if node.Modifiers() != nil {

Callers 1

bindModuleDeclarationMethod · 0.95

Calls 3

GetModuleInstanceStateFunction · 0.92
IfElseFunction · 0.92

Tested by

no test coverage detected