Skip to content

Commit 36546ce

Browse files
committed
TS: Print warning when bailing out of symbol type
1 parent 3a4771c commit 36546ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/extractor/lib/typescript/src/type_table.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ export class TypeTable {
771771
try {
772772
return this.typeChecker.getTypeOfSymbolAtLocation(symbol, this.arbitraryAstNode)
773773
} catch (e) {
774+
console.warn(`Could not compute type of '${this.typeChecker.symbolToString(symbol)}'`);
774775
return null;
775776
}
776777
}

0 commit comments

Comments
 (0)