Skip to content

Commit 9f70c92

Browse files
committed
chore: format files
1 parent 57390f8 commit 9f70c92

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/compiler/checker.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12284,31 +12284,31 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1228412284
function getTypeOfSymbol(symbol: Symbol): Type {
1228512285
// Retrieve the check flags for the given symbol
1228612286
const checkFlags = getCheckFlags(symbol);
12287-
12287+
1228812288
// Define a mapping of flag checks to their respective type resolver functions
1228912289
const typeResolvers: [number, (sym: Symbol) => Type][] = [
1229012290
// Check for deferred type symbols
1229112291
[CheckFlags.DeferredType, getTypeOfSymbolWithDeferredType], // Check for instantiated symbols
1229212292
[CheckFlags.Instantiated, getTypeOfInstantiatedSymbol], // Check for mapped symbols (cast to MappedSymbol)
12293-
[CheckFlags.Mapped, (sym) => getTypeOfMappedSymbol(sym as MappedSymbol)], // Check for reverse-mapped symbols (cast to ReverseMappedSymbol)
12294-
[CheckFlags.ReverseMapped, (sym) => getTypeOfReverseMappedSymbol(sym as ReverseMappedSymbol)], // Check for variables and properties
12293+
[CheckFlags.Mapped, sym => getTypeOfMappedSymbol(sym as MappedSymbol)], // Check for reverse-mapped symbols (cast to ReverseMappedSymbol)
12294+
[CheckFlags.ReverseMapped, sym => getTypeOfReverseMappedSymbol(sym as ReverseMappedSymbol)], // Check for variables and properties
1229512295
[SymbolFlags.Variable | SymbolFlags.Property, getTypeOfVariableOrParameterOrProperty], // Check for functions, methods, classes, enums, and value modules
1229612296
[SymbolFlags.Function | SymbolFlags.Method | SymbolFlags.Class | SymbolFlags.Enum | SymbolFlags.ValueModule, getTypeOfFuncClassEnumModule], // Check for enum members
1229712297
[SymbolFlags.EnumMember, getTypeOfEnumMember], // Check for accessor symbols
1229812298
[SymbolFlags.Accessor, getTypeOfAccessors], // Check for alias symbols
1229912299
[SymbolFlags.Alias, getTypeOfAlias],
1230012300
];
12301-
12301+
1230212302
// Iterate through the mapping and return the corresponding type if a flag matches
1230312303
for (const [flag, resolver] of typeResolvers) {
1230412304
if ((checkFlags & flag) || (symbol.flags & flag)) {
1230512305
return resolver(symbol);
1230612306
}
1230712307
}
12308-
12308+
1230912309
// Return the error type if no conditions match
1231012310
return errorType;
12311-
}
12311+
}
1231212312

1231312313
function getNonMissingTypeOfSymbol(symbol: Symbol) {
1231412314
return removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & SymbolFlags.Optional));

0 commit comments

Comments
 (0)