[M] Change in dart/sdk[main]: analyzer: Guard DotShorthandConstructorInvocation from Deprecated.ins...

0 views
Skip to first unread message

Kallen Tu (Gerrit)

unread,
Sep 26, 2025, 1:42:35 PM (3 days ago) Sep 26
to Samuel Rawlins, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Samuel Rawlins

Kallen Tu voted and added 1 comment

Votes added by Kallen Tu

Code-Review+1

1 comment

File pkg/analyzer/lib/src/error/deprecated_functionality_verifier.dart
Line 55, Patchset 4 (Latest): void dotShorthandInvocation(DotShorthandInvocation node) {
Kallen Tu . unresolved

If you haven't already, maybe check with dot shorthand invocations as well? (These would be named constructor instantiations like `.named()`)

Open in Gerrit

Related details

Attention is currently required from:
  • Samuel Rawlins
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement 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: I04d0aea70afce94fe2e574c38e02bbd5dbb7933f
Gerrit-Change-Number: 451661
Gerrit-PatchSet: 4
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Kallen Tu <kall...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 17:42:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy

Samuel Rawlins (Gerrit)

unread,
Sep 26, 2025, 2:47:22 PM (3 days ago) Sep 26
to Kallen Tu, Commit Queue, dart-analys...@google.com, rev...@dartlang.org

Samuel Rawlins added 1 comment

File pkg/analyzer/lib/src/error/deprecated_functionality_verifier.dart
Line 55, Patchset 4: void dotShorthandInvocation(DotShorthandInvocation node) {
Kallen Tu . resolved

If you haven't already, maybe check with dot shorthand invocations as well? (These would be named constructor instantiations like `.named()`)

Samuel Rawlins

Added a test; thanks for the note!

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement 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: I04d0aea70afce94fe2e574c38e02bbd5dbb7933f
Gerrit-Change-Number: 451661
Gerrit-PatchSet: 4
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Kallen Tu <kall...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 18:47:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kallen Tu <kall...@google.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Sep 26, 2025, 2:50:28 PM (3 days ago) Sep 26
to Samuel Rawlins, Kallen Tu, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Samuel Rawlins

Konstantin Shcheglov voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Samuel Rawlins
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement 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: I04d0aea70afce94fe2e574c38e02bbd5dbb7933f
Gerrit-Change-Number: 451661
Gerrit-PatchSet: 5
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Kallen Tu <kall...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 18:50:23 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Samuel Rawlins (Gerrit)

unread,
Sep 26, 2025, 3:24:47 PM (3 days ago) Sep 26
to Konstantin Shcheglov, Kallen Tu, Commit Queue, dart-analys...@google.com, rev...@dartlang.org

Samuel Rawlins voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement 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: I04d0aea70afce94fe2e574c38e02bbd5dbb7933f
Gerrit-Change-Number: 451661
Gerrit-PatchSet: 5
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Kallen Tu <kall...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 19:24:44 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Commit Queue (Gerrit)

unread,
Sep 26, 2025, 3:25:03 PM (3 days ago) Sep 26
to Samuel Rawlins, Konstantin Shcheglov, Kallen Tu, dart-analys...@google.com, rev...@dartlang.org

Commit Queue submitted the change

Change information

Commit message:
analyzer: Guard DotShorthandConstructorInvocation from Deprecated.instantiate

DotShorthandConstructorInvocation does not have a ConstructorName,
so we convert `DeprecatedFunctionalityVerifier.constructorName` into
`._checkForDeprecatedInstantiate`, and then call that in
`constructorName`, `dotShorthandConstructorInvocation` and
`instanceCreationExpression`.


Change-Id: I04d0aea70afce94fe2e574c38e02bbd5dbb7933f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/451661
Reviewed-by: Kallen Tu <kall...@google.com>
Reviewed-by: Konstantin Shcheglov <sche...@google.com>
Commit-Queue: Samuel Rawlins <sraw...@google.com>
Files:
  • M pkg/analyzer/lib/src/error/deprecated_functionality_verifier.dart
  • M pkg/analyzer/test/src/diagnostics/deprecated_instantiate_test.dart
Change size: M
Delta: 2 files changed, 74 insertions(+), 12 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Konstantin Shcheglov, +1 by Kallen Tu
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I04d0aea70afce94fe2e574c38e02bbd5dbb7933f
Gerrit-Change-Number: 451661
Gerrit-PatchSet: 6
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages