Merge pull request #9578 from Microsoft/fix-salsa-out-of-memory-on-methods-returning-this

Provide a symbol for salsa-inferred class types
This commit is contained in:
Nathan Shively-Sanders
2016-07-11 11:41:18 -07:00
committed by GitHub
7 changed files with 303 additions and 10 deletions

View File

@@ -11673,7 +11673,7 @@ namespace ts {
function getInferredClassType(symbol: Symbol) {
const links = getSymbolLinks(symbol);
if (!links.inferredClassType) {
links.inferredClassType = createAnonymousType(undefined, symbol.members, emptyArray, emptyArray, /*stringIndexType*/ undefined, /*numberIndexType*/ undefined);
links.inferredClassType = createAnonymousType(symbol, symbol.members, emptyArray, emptyArray, /*stringIndexType*/ undefined, /*numberIndexType*/ undefined);
}
return links.inferredClassType;
}