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

Function IsExternalOrCommonJSModule

internal/ast/utilities.go:1645–1647  ·  view source on GitHub ↗
(file *SourceFile)

Source from the content-addressed store, hash-verified

1643}
1644
1645func IsExternalOrCommonJSModule(file *SourceFile) bool {
1646 return file.ExternalModuleIndicator != nil || file.CommonJSModuleIndicator != nil
1647}
1648
1649// TODO: Should we deprecate `IsExternalOrCommonJSModule` in favor of this function?
1650func IsEffectiveExternalModule(node *SourceFile, compilerOptions *core.CompilerOptions) bool {

Calls

no outgoing calls

Tested by

no test coverage detected