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

Function IsExportNamespaceAsDefaultDeclaration

internal/ast/utilities.go:1663–1669  ·  view source on GitHub ↗
(node *Node)

Source from the content-addressed store, hash-verified

1661}
1662
1663func IsExportNamespaceAsDefaultDeclaration(node *Node) bool {
1664 if IsExportDeclaration(node) {
1665 decl := node.AsExportDeclaration()
1666 return IsNamespaceExport(decl.ExportClause) && ModuleExportNameIsDefault(decl.ExportClause.Name())
1667 }
1668 return false
1669}
1670
1671func IsGlobalScopeAugmentation(node *Node) bool {
1672 return IsModuleDeclaration(node) && node.AsModuleDeclaration().Keyword == KindGlobalKeyword

Callers 1

Calls 5

IsExportDeclarationFunction · 0.85
IsNamespaceExportFunction · 0.85
AsExportDeclarationMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected