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

Function IsInstantiatedModule

internal/ast/utilities.go:2424–2428  ·  view source on GitHub ↗
(node *Node, preserveConstEnums bool)

Source from the content-addressed store, hash-verified

2422}
2423
2424func IsInstantiatedModule(node *Node, preserveConstEnums bool) bool {
2425 moduleState := GetModuleInstanceState(node)
2426 return moduleState == ModuleInstanceStateInstantiated ||
2427 (preserveConstEnums && moduleState == ModuleInstanceStateConstEnumOnly)
2428}
2429
2430func NodeHasName(statement *Node, id *Node) bool {
2431 name := statement.Name()

Callers 3

visitMethod · 0.92

Calls 1

GetModuleInstanceStateFunction · 0.85

Tested by

no test coverage detected