mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Remove now-unused function
`doesNameResolveToLocalSymbolForExportDefault` is no longer used, so delete it.
This commit is contained in:
@@ -677,12 +677,6 @@ namespace ts {
|
||||
return result;
|
||||
}
|
||||
|
||||
function doesNameResolveToLocalSymbolForExportDefault(exports: SymbolTable, meaning: SymbolFlags, name: string): boolean {
|
||||
const defaultExport = exports["default"];
|
||||
const localSymbol = getLocalSymbolForExportDefault(defaultExport);
|
||||
return defaultExport && (defaultExport.flags & meaning) && localSymbol && localSymbol.name === name;
|
||||
}
|
||||
|
||||
function checkResolvedBlockScopedVariable(result: Symbol, errorLocation: Node): void {
|
||||
Debug.assert((result.flags & SymbolFlags.BlockScopedVariable) !== 0);
|
||||
// Block-scoped variables cannot be used before their definition
|
||||
|
||||
Reference in New Issue
Block a user