[M] Change in dart/sdk[main]: [DAS] Fixes renaming constructor invocation on annotation

0 views
Skip to first unread message

FMorschel (Gerrit)

unread,
Jun 17, 2026, 11:36:48 PM (6 days ago) Jun 17
to dart-analys...@google.com, rev...@dartlang.org

FMorschel has uploaded the change for review

Commit message

[DAS] Fixes renaming constructor invocation on annotation
Change-Id: I98fadd0764fe9b3927ed8f703a55424c63424725

Change information

Files:
  • M pkg/analysis_server/test/services/refactoring/legacy/rename_constructor_test.dart
  • M pkg/analyzer/lib/src/dart/analysis/index.dart
Change size: M
Delta: 2 files changed, 104 insertions(+), 1 deletion(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I98fadd0764fe9b3927ed8f703a55424c63424725
Gerrit-Change-Number: 514760
Gerrit-PatchSet: 1
Gerrit-Owner: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: FMorschel <g...@fmorschel.dev>
unsatisfied_requirement
open
diffy

FMorschel (Gerrit)

unread,
Jun 17, 2026, 11:37:47 PM (6 days ago) Jun 17
to Brian Wilkerson, Konstantin Shcheglov, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and Konstantin Shcheglov

FMorschel added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
FMorschel . resolved

PTAL. Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • Konstantin Shcheglov
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I98fadd0764fe9b3927ed8f703a55424c63424725
Gerrit-Change-Number: 514760
Gerrit-PatchSet: 1
Gerrit-Owner: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Thu, 18 Jun 2026 03:37:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Jun 18, 2026, 12:24:51 AM (6 days ago) Jun 18
to FMorschel, Brian Wilkerson, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and FMorschel

Konstantin Shcheglov added 1 comment

File pkg/analyzer/lib/src/dart/analysis/index.dart
Line 1166, Patchset 1 (Latest): if (parent case Annotation(
Konstantin Shcheglov . unresolved

Changes to `index.dart` should be paired with changes to `index_test.dart`, providing full coverage for the new logic.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • FMorschel
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I98fadd0764fe9b3927ed8f703a55424c63424725
Gerrit-Change-Number: 514760
Gerrit-PatchSet: 1
Gerrit-Owner: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: FMorschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Thu, 18 Jun 2026 04:24:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

FMorschel (Gerrit)

unread,
Jun 23, 2026, 11:52:40 AM (22 hours ago) Jun 23
to Brian Wilkerson, Konstantin Shcheglov, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and Konstantin Shcheglov

FMorschel voted and added 1 comment

Votes added by FMorschel

Auto-Submit+1

1 comment

File pkg/analyzer/lib/src/dart/analysis/index.dart
Line 1166, Patchset 1: if (parent case Annotation(
Konstantin Shcheglov . resolved

Changes to `index.dart` should be paired with changes to `index_test.dart`, providing full coverage for the new logic.

FMorschel

I've updated the tests that failed. They already covered the changes.

PTAL again. Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • Konstantin Shcheglov
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I98fadd0764fe9b3927ed8f703a55424c63424725
Gerrit-Change-Number: 514760
Gerrit-PatchSet: 2
Gerrit-Owner: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Tue, 23 Jun 2026 15:52:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Konstantin Shcheglov <sche...@google.com>
unsatisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Jun 23, 2026, 3:34:44 PM (18 hours ago) Jun 23
to FMorschel, Brian Wilkerson, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and FMorschel

Konstantin Shcheglov added 1 comment

File pkg/analyzer/test/src/dart/analysis/index_test.dart
Line 316, Patchset 2 (Latest):107 9:2 |A| IS_INVOKED_BY
Konstantin Shcheglov . unresolved

These changes don't make sense.
Class name is referenced.
Constructors (in annotation) are invoked.
Classes cannot be invoked.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • FMorschel
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I98fadd0764fe9b3927ed8f703a55424c63424725
Gerrit-Change-Number: 514760
Gerrit-PatchSet: 2
Gerrit-Owner: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: FMorschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Tue, 23 Jun 2026 19:34:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Jun 23, 2026, 3:49:48 PM (18 hours ago) Jun 23
to FMorschel, Brian Wilkerson, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and FMorschel

Konstantin Shcheglov added 1 comment

File pkg/analyzer/test/src/dart/analysis/index_test.dart
Line 316, Patchset 2 (Latest):107 9:2 |A| IS_INVOKED_BY
Konstantin Shcheglov . unresolved

These changes don't make sense.
Class name is referenced.
Constructors (in annotation) are invoked.
Classes cannot be invoked.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • FMorschel
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I98fadd0764fe9b3927ed8f703a55424c63424725
Gerrit-Change-Number: 514760
Gerrit-PatchSet: 2
Gerrit-Owner: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: FMorschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Tue, 23 Jun 2026 19:49:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Konstantin Shcheglov <sche...@google.com>
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
Jun 23, 2026, 3:51:33 PM (18 hours ago) Jun 23
to FMorschel, Brian Wilkerson, Konstantin Shcheglov, dart-analys...@google.com, rev...@dartlang.org
Attention needed from FMorschel

Brian Wilkerson added 1 comment

File pkg/analyzer/test/src/dart/analysis/index_test.dart
Line 316, Patchset 2 (Latest):107 9:2 |A| IS_INVOKED_BY
Konstantin Shcheglov . unresolved

These changes don't make sense.
Class name is referenced.
Constructors (in annotation) are invoked.
Classes cannot be invoked.

Brian Wilkerson

Also, these changes are potentially breaking. If there's a refactoring that's looking for all the places a class `IS_REFERENCED_BY`, then it will no longer find these locations.

I haven't tried running all of the `analyzer` and `analysis_server` tests with these changes patched in. I don't know whether you have, but it would be worth a try.

But there's a bigger question. As far as I can tell this didn't add any information to the index, just changed the relationship being recorded in a few places. So why did that help?

Open in Gerrit

Related details

Attention is currently required from:
  • FMorschel
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I98fadd0764fe9b3927ed8f703a55424c63424725
Gerrit-Change-Number: 514760
Gerrit-PatchSet: 2
Gerrit-Owner: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: FMorschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: FMorschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Tue, 23 Jun 2026 19:51:29 +0000
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages