TS: Print warning when bailing out of symbol type

This commit is contained in:
Asger F
2020-01-03 10:45:18 +00:00
parent 3a4771c29c
commit 36546ce7fe

View File

@@ -771,6 +771,7 @@ export class TypeTable {
try {
return this.typeChecker.getTypeOfSymbolAtLocation(symbol, this.arbitraryAstNode)
} catch (e) {
console.warn(`Could not compute type of '${this.typeChecker.symbolToString(symbol)}'`);
return null;
}
}