Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b925c16

Browse filesBrowse files
authored
Only catalog types when tracing (microsoft#43304)
1 parent fbc9c94 commit b925c16
Copy full SHA for b925c16

1 file changed

+3-1Lines changed: 3 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/checker.ts‎

Copy file name to clipboardExpand all lines: src/compiler/checker.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3816,7 +3816,9 @@ namespace ts {
38163816
const result = new Type(checker, flags);
38173817
typeCount++;
38183818
result.id = typeCount;
3819-
typeCatalog.push(result);
3819+
if (tracing) {
3820+
typeCatalog.push(result);
3821+
}
38203822
return result;
38213823
}
38223824

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.