File tree 2 files changed +0
-13
lines changed
2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -4291,15 +4291,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4291
4291
}
4292
4292
}
4293
4293
4294
- // Aliases that resolve to const enums are not marked as referenced because they are not emitted,
4295
- // but their usage in value positions must be tracked to determine if the import can be type-only.
4296
- function markConstEnumAliasAsReferenced(symbol: Symbol) {
4297
- const links = getSymbolLinks(symbol);
4298
- if (!links.constEnumReferenced) {
4299
- links.constEnumReferenced = true;
4300
- }
4301
- }
4302
-
4303
4294
// This function is only for imports with entity names
4304
4295
function getSymbolOfPartOfRightHandSideOfImportEquals(entityName: EntityName, dontResolveAlias?: boolean): Symbol | undefined {
4305
4296
// There are three things we might try to look for. In the following examples,
@@ -29202,9 +29193,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
29202
29193
) {
29203
29194
markAliasSymbolAsReferenced(symbol);
29204
29195
}
29205
- else {
29206
- markConstEnumAliasAsReferenced(symbol);
29207
- }
29208
29196
}
29209
29197
}
29210
29198
}
Original file line number Diff line number Diff line change @@ -5916,7 +5916,6 @@ export interface SymbolLinks {
5916
5916
inferredClassSymbol ?: Map < SymbolId , TransientSymbol > ; // Symbol of an inferred ES5 constructor function
5917
5917
mapper ?: TypeMapper ; // Type mapper for instantiation alias
5918
5918
referenced ?: boolean ; // True if alias symbol has been referenced as a value that can be emitted
5919
- constEnumReferenced ?: boolean ; // True if alias symbol resolves to a const enum and is referenced as a value ('referenced' will be false)
5920
5919
containingType ?: UnionOrIntersectionType ; // Containing union or intersection type for synthetic property
5921
5920
leftSpread ?: Symbol ; // Left source for synthetic spread property
5922
5921
rightSpread ?: Symbol ; // Right source for synthetic spread property
You can’t perform that action at this time.
0 commit comments