mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 20:33:45 -05:00
Add _0_is_declared_here pointing to accessor declaration
This commit is contained in:
@@ -25856,7 +25856,10 @@ namespace ts {
|
||||
// Diagnose get accessors incorrectly called as functions
|
||||
const { resolvedSymbol } = getNodeLinks(node.expression);
|
||||
if (resolvedSymbol && resolvedSymbol.flags & SymbolFlags.GetAccessor) {
|
||||
relatedInformation.push(createDiagnosticForNode(node.expression, Diagnostics._0_is_a_get_accessor_did_you_mean_to_use_it_without, getTextOfNode(node.expression)));
|
||||
relatedInformation.push(
|
||||
createDiagnosticForNode(node.expression, Diagnostics._0_is_a_get_accessor_did_you_mean_to_use_it_without, getTextOfNode(node.expression)),
|
||||
createDiagnosticForNode(resolvedSymbol.valueDeclaration, Diagnostics._0_is_declared_here, symbolToString(resolvedSymbol))
|
||||
);
|
||||
}
|
||||
}
|
||||
else if (node.arguments.length === 1) {
|
||||
|
||||
Reference in New Issue
Block a user