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

Method bindSourceFileAsExternalModule

internal/binder/binder.go:772–774  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

770}
771
772func (b *Binder) bindSourceFileAsExternalModule() {
773 b.bindAnonymousDeclaration(b.file.AsNode(), ast.SymbolFlagsValueModule, "\""+tspath.RemoveFileExtension(b.file.FileName())+"\"")
774}
775
776func (b *Binder) bindModuleDeclaration(node *ast.Node) {
777 b.setExportContextFlag(node)

Calls 4

RemoveFileExtensionFunction · 0.92
AsNodeMethod · 0.65
FileNameMethod · 0.65

Tested by

no test coverage detected