Only catalog types when tracing (#43304)

This commit is contained in:
Andrew Casey
2021-03-19 09:59:04 -07:00
committed by GitHub
parent fbc9c942b2
commit b925c165c4

View File

@@ -3816,7 +3816,9 @@ namespace ts {
const result = new Type(checker, flags);
typeCount++;
result.id = typeCount;
typeCatalog.push(result);
if (tracing) {
typeCatalog.push(result);
}
return result;
}