Fix declaration emit crash (#58872)

This commit is contained in:
Andrew Branch
2024-06-17 12:01:40 -07:00
committed by GitHub
parent b63e5307ab
commit e6ae9866fd
6 changed files with 128 additions and 10 deletions
-9
View File
@@ -2408,15 +2408,6 @@ export function isTypeKeywordTokenOrIdentifier(node: Node) {
return isTypeKeywordToken(node) || isIdentifier(node) && node.text === "type";
}
/**
* True if the symbol is for an external module, as opposed to a namespace.
*
* @internal
*/
export function isExternalModuleSymbol(moduleSymbol: Symbol): boolean {
return !!(moduleSymbol.flags & SymbolFlags.Module) && moduleSymbol.name.charCodeAt(0) === CharacterCodes.doubleQuote;
}
/**
* Returns `true` the first time it encounters a node and `false` afterwards.
*