[M] Change in dart/sdk[main]: analyzer: For must_be_immutable, check fields declared in primary con...

0 views
Skip to first unread message

Samuel Rawlins (Gerrit)

unread,
Dec 18, 2025, 2:22:27 PM (3 days ago) Dec 18
to Brian Wilkerson, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Samuel Rawlins voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
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: I9293e8ff8d4cdf86136b8fd558dfee7955787741
Gerrit-Change-Number: 469081
Gerrit-PatchSet: 1
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Thu, 18 Dec 2025 19:22:24 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
Dec 18, 2025, 2:26:59 PM (3 days ago) Dec 18
to Samuel Rawlins, Brian Wilkerson, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Samuel Rawlins

Brian Wilkerson voted and added 1 comment

Votes added by Brian Wilkerson

Code-Review+1

1 comment

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

LGTM, but this is in the analyzer package, so you'll need another reviewer.

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: I9293e8ff8d4cdf86136b8fd558dfee7955787741
    Gerrit-Change-Number: 469081
    Gerrit-PatchSet: 1
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
    Gerrit-Comment-Date: Thu, 18 Dec 2025 19:26:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    Samuel Rawlins (Gerrit)

    unread,
    Dec 18, 2025, 2:27:59 PM (3 days ago) Dec 18
    to Paul Berry, Brian Wilkerson, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
    Attention needed from Paul Berry

    Samuel Rawlins added 1 comment

    Patchset-level comments
    Brian Wilkerson . resolved

    LGTM, but this is in the analyzer package, so you'll need another reviewer.

    Samuel Rawlins

    Yep, one domain expert approval, and one OWNERs approvel

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Paul Berry
    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: I9293e8ff8d4cdf86136b8fd558dfee7955787741
    Gerrit-Change-Number: 469081
    Gerrit-PatchSet: 1
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Paul Berry <paul...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Attention: Paul Berry <paul...@google.com>
    Gerrit-Comment-Date: Thu, 18 Dec 2025 19:27:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    Paul Berry (Gerrit)

    unread,
    Dec 18, 2025, 2:30:16 PM (3 days ago) Dec 18
    to Samuel Rawlins, Brian Wilkerson, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
    Attention needed from Samuel Rawlins

    Paul Berry voted and added 1 comment

    Votes added by Paul Berry

    Code-Review+1

    1 comment

    Patchset-level comments
    Paul Berry . resolved

    lgtm

    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: I9293e8ff8d4cdf86136b8fd558dfee7955787741
    Gerrit-Change-Number: 469081
    Gerrit-PatchSet: 1
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Paul Berry <paul...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
    Gerrit-Comment-Date: Thu, 18 Dec 2025 19:30:13 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Samuel Rawlins (Gerrit)

    unread,
    Dec 18, 2025, 2:35:13 PM (3 days ago) Dec 18
    to Paul Berry, Brian Wilkerson, 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: I9293e8ff8d4cdf86136b8fd558dfee7955787741
    Gerrit-Change-Number: 469081
    Gerrit-PatchSet: 1
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Paul Berry <paul...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Comment-Date: Thu, 18 Dec 2025 19:35:10 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Commit Queue (Gerrit)

    unread,
    Dec 18, 2025, 2:35:23 PM (3 days ago) Dec 18
    to Samuel Rawlins, Paul Berry, Brian Wilkerson, dart-analys...@google.com, rev...@dartlang.org

    Commit Queue submitted the change

    Change information

    Commit message:
    analyzer: For must_be_immutable, check fields declared in primary constructors

    Work towards https://github.com/dart-lang/sdk/issues/62268
    Change-Id: I9293e8ff8d4cdf86136b8fd558dfee7955787741
    Reviewed-by: Brian Wilkerson <brianwi...@google.com>
    Reviewed-by: Paul Berry <paul...@google.com>
    Commit-Queue: Samuel Rawlins <sraw...@google.com>
    Files:
    • M pkg/analyzer/lib/src/error/best_practices_verifier.dart
    • A pkg/analyzer/lib/src/error/immutable_verifier.dart
    • M pkg/analyzer/test/src/diagnostics/must_be_immutable_test.dart
    Change size: M
    Delta: 3 files changed, 140 insertions(+), 94 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Paul Berry, +1 by Brian Wilkerson
    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: I9293e8ff8d4cdf86136b8fd558dfee7955787741
    Gerrit-Change-Number: 469081
    Gerrit-PatchSet: 2
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    open
    diffy
    satisfied_requirement

    Konstantin Shcheglov (Gerrit)

    unread,
    Dec 19, 2025, 10:52:35 AM (2 days ago) Dec 19
    to Samuel Rawlins, Commit Queue, Paul Berry, Brian Wilkerson, dart-analys...@google.com, rev...@dartlang.org
    Attention needed from Samuel Rawlins

    Konstantin Shcheglov added 1 comment

    File pkg/analyzer/lib/src/error/immutable_verifier.dart
    Line 108, Patchset 2 (Latest): .where((f) => !f.isStatic && !f.isFinal && !f.isOriginGetterSetter)
    Konstantin Shcheglov . unresolved

    I think the logic is easier to understand if it were listing origins that we support than negating them. It works for now as is, but it would be easier to find interesting places later.

    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: I9293e8ff8d4cdf86136b8fd558dfee7955787741
    Gerrit-Change-Number: 469081
    Gerrit-PatchSet: 2
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Paul Berry <paul...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-CC: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
    Gerrit-Comment-Date: Fri, 19 Dec 2025 15:52:33 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages