mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
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.
This commit is contained in:
parent
62b4377acf
commit
195fad23a5
@ -26399,7 +26399,7 @@ namespace ts {
|
||||
const isTaggedTemplate = node.kind === SyntaxKind.TaggedTemplateExpression;
|
||||
const isDecorator = node.kind === SyntaxKind.Decorator;
|
||||
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
|
||||
const reportErrors = !candidatesOutArray;
|
||||
const reportErrors = !candidatesOutArray && produceDiagnostics;
|
||||
|
||||
let typeArguments: NodeArray<TypeNode> | undefined;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user