[M] Change in dart/sdk[main]: analyzer: Move errorRange utilities to public API

0 views
Skip to first unread message

Samuel Rawlins (Gerrit)

unread,
Feb 24, 2026, 1:05:27 PMFeb 24
to Konstantin Shcheglov, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov

Samuel Rawlins voted and added 1 comment

Votes added by Samuel Rawlins

Commit-Queue+1

1 comment

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

If you think these two getters should instead move to the AST classes themselves, I can refactor this.

Open in Gerrit

Related details

Attention is currently required from:
  • 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: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Gerrit-Change-Number: 483360
Gerrit-PatchSet: 1
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Tue, 24 Feb 2026 18:05:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Samuel Rawlins (Gerrit)

unread,
Mar 3, 2026, 7:18:17 PMMar 3
to Konstantin Shcheglov, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov

Samuel Rawlins added 1 comment

Patchset-level comments
Samuel Rawlins . resolved

Friendly ping

Open in Gerrit

Related details

Attention is currently required from:
  • 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: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Gerrit-Change-Number: 483360
Gerrit-PatchSet: 1
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Wed, 04 Mar 2026 00:18:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Mar 4, 2026, 2:52:19 PMMar 4
to Samuel Rawlins, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Samuel Rawlins

Konstantin Shcheglov added 1 comment

Patchset-level comments
Konstantin Shcheglov . unresolved

Not sure how I feel about this. Why do we do this? Linter already can use it, and we can change both analyzer and linter atomically as needed. Making it official API though... Now we have to support it.

Open in Gerrit

Related details

Attention is currently required from:
  • Samuel Rawlins
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: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Gerrit-Change-Number: 483360
Gerrit-PatchSet: 1
Gerrit-Owner: Samuel Rawlins <sraw...@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: Wed, 04 Mar 2026 19:52:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Samuel Rawlins (Gerrit)

unread,
Mar 4, 2026, 3:16:46 PMMar 4
to Konstantin Shcheglov, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov

Samuel Rawlins added 1 comment

Patchset-level comments
Konstantin Shcheglov . unresolved

Not sure how I feel about this. Why do we do this? Linter already can use it, and we can change both analyzer and linter atomically as needed. Making it official API though... Now we have to support it.

Samuel Rawlins

Ah, I thought we were on a quest to make anything the linter uses live in public API, as it is an indication that it is sensible to want/use this utility if you are writing an analysis rule.

I can bring it up in the Model team meeting; it's not crucial for me, or important anytime soon.

Open in Gerrit

Related details

Attention is currently required from:
  • 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: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Gerrit-Change-Number: 483360
Gerrit-PatchSet: 1
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Wed, 04 Mar 2026 20:16:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Konstantin Shcheglov <sche...@google.com>
unsatisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Mar 4, 2026, 3:17:54 PMMar 4
to Samuel Rawlins, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Samuel Rawlins

Konstantin Shcheglov added 1 comment

Patchset-level comments
Konstantin Shcheglov . unresolved

Not sure how I feel about this. Why do we do this? Linter already can use it, and we can change both analyzer and linter atomically as needed. Making it official API though... Now we have to support it.

Samuel Rawlins

Ah, I thought we were on a quest to make anything the linter uses live in public API, as it is an indication that it is sensible to want/use this utility if you are writing an analysis rule.

I can bring it up in the Model team meeting; it's not crucial for me, or important anytime soon.

Konstantin Shcheglov

Yes, lets discuss it.

Open in Gerrit

Related details

Attention is currently required from:
  • Samuel Rawlins
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: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Gerrit-Change-Number: 483360
Gerrit-PatchSet: 1
Gerrit-Owner: Samuel Rawlins <sraw...@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: Wed, 04 Mar 2026 20:17:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Samuel Rawlins <sraw...@google.com>
Comment-In-Reply-To: Konstantin Shcheglov <sche...@google.com>
unsatisfied_requirement
open
diffy

Samuel Rawlins (Gerrit)

unread,
May 12, 2026, 10:36:23 PM (11 hours ago) May 12
to Konstantin Shcheglov, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov

Samuel Rawlins added 1 comment

Patchset-level comments
File-level comment, Patchset 1:
Konstantin Shcheglov . resolved

Not sure how I feel about this. Why do we do this? Linter already can use it, and we can change both analyzer and linter atomically as needed. Making it official API though... Now we have to support it.

Samuel Rawlins

Ah, I thought we were on a quest to make anything the linter uses live in public API, as it is an indication that it is sensible to want/use this utility if you are writing an analysis rule.

I can bring it up in the Model team meeting; it's not crucial for me, or important anytime soon.

Konstantin Shcheglov

Yes, lets discuss it.

Samuel Rawlins

Okie doke, discussed, and switched from extension to AST members proper.

Open in Gerrit

Related details

Attention is currently required from:
  • 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: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Gerrit-Change-Number: 483360
Gerrit-PatchSet: 7
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Wed, 13 May 2026 02:36:20 +0000
unsatisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
May 12, 2026, 10:37:42 PM (11 hours ago) May 12
to Samuel Rawlins, dart-...@luci-project-accounts.iam.gserviceaccount.com, 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: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Gerrit-Change-Number: 483360
Gerrit-PatchSet: 7
Gerrit-Owner: Samuel Rawlins <sraw...@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: Wed, 13 May 2026 02:37:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Samuel Rawlins (Gerrit)

unread,
May 12, 2026, 10:44:22 PM (10 hours ago) May 12
to Konstantin Shcheglov, dart-...@luci-project-accounts.iam.gserviceaccount.com, 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: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Gerrit-Change-Number: 483360
Gerrit-PatchSet: 7
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Comment-Date: Wed, 13 May 2026 02:44:20 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

dart-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

unread,
May 12, 2026, 10:44:31 PM (10 hours ago) May 12
to Samuel Rawlins, Konstantin Shcheglov, dart-analys...@google.com, rev...@dartlang.org

dart-...@luci-project-accounts.iam.gserviceaccount.com submitted the change

Change information

Commit message:
analyzer: Move errorRange utilities to public API
Change-Id: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Reviewed-by: Konstantin Shcheglov <sche...@google.com>
Commit-Queue: Samuel Rawlins <sraw...@google.com>
Files:
  • M pkg/analyzer/api.txt
  • M pkg/analyzer/lib/src/dart/ast/ast.dart
  • M pkg/analyzer/lib/src/dart/ast/extensions.dart
  • M pkg/analyzer/lib/src/error/constructor_fields_verifier.dart
  • M pkg/analyzer/lib/src/error/deprecated_functionality_verifier.dart
  • M pkg/analyzer/lib/src/error/listener.dart
  • M pkg/analyzer/lib/src/error/member_duplicate_definition_verifier.dart
  • M pkg/linter/lib/src/rules/deprecated_consistency.dart
  • M pkg/linter/lib/src/rules/prefer_const_constructors_in_immutables.dart
  • M pkg/linter/lib/src/rules/sort_constructors_first.dart
  • M pkg/linter/lib/src/rules/sort_unnamed_constructors_first.dart
  • M pkg/linter/lib/src/rules/use_super_parameters.dart
Change size: M
Delta: 12 files changed, 26 insertions(+), 29 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Konstantin Shcheglov
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: Idb886a2e4b333fb1a75195da3072cba91e53ebfd
Gerrit-Change-Number: 483360
Gerrit-PatchSet: 8
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages