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 195fad2

Browse filesBrowse files
committed
Reduce unnecessary error computation
...during overload resolution. Based on a trace that was spending 30% of a (very slow) overload resolution elaborating errors that were then dropped.
1 parent 62b4377 commit 195fad2
Copy full SHA for 195fad2

1 file changed

+1-1Lines changed: 1 addition & 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
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26399,7 +26399,7 @@ namespace ts {
2639926399
const isTaggedTemplate = node.kind === SyntaxKind.TaggedTemplateExpression;
2640026400
const isDecorator = node.kind === SyntaxKind.Decorator;
2640126401
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
26402-
const reportErrors = !candidatesOutArray;
26402+
const reportErrors = !candidatesOutArray && produceDiagnostics;
2640326403

2640426404
let typeArguments: NodeArray<TypeNode> | undefined;
2640526405

0 commit comments

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