Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 17, 2025
1 parent 831d771 commit b764f3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37609,9 +37609,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
if (node.name.escapedText === "defer") {
Debug.assert(!isCallExpression(node.parent) || node.parent.expression !== node, "Trying to get the type of `import.defer` in `import.defer(...)`");
return errorType;
} else {
return checkImportMetaProperty(node);
}
return checkImportMetaProperty(node);
}

return Debug.assertNever(node.keywordToken);
Expand Down Expand Up @@ -49758,9 +49757,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {

if (isExpressionNode(node)) {
try {
return getRegularTypeOfExpression(node as Expression);
} catch (e) {
console.error("Error while getting the type of", isExpressionNode(node), node.kind, (node as MetaProperty).keywordToken !== SyntaxKind.ImportKeyword, (node as MetaProperty).name?.escapedText)
return getRegularTypeOfExpression(node as Expression);
}
catch (e) {
console.error("Error while getting the type of", isExpressionNode(node), node.kind, (node as MetaProperty).keywordToken !== SyntaxKind.ImportKeyword, (node as MetaProperty).name?.escapedText);
throw e;
}
}
Expand Down

0 comments on commit b764f3a

Please sign in to comment.