[L] Change in dart/sdk[main]: Fine. Fix NPE when constant expression uses operator of unnamed exten...

0 views
Skip to first unread message

Konstantin Shcheglov (Gerrit)

unread,
Oct 19, 2025, 8:28:42 PM (2 days ago) Oct 19
to Paul Berry, Johnni Winther, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther and Paul Berry

Konstantin Shcheglov voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Johnni Winther
  • Paul Berry
Submit Requirements:
  • requirement 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: I2a7da9296996bb7701e4815c6b720b49e19ac1c5
Gerrit-Change-Number: 455900
Gerrit-PatchSet: 5
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-Attention: Paul Berry <paul...@google.com>
Gerrit-Attention: Johnni Winther <johnni...@google.com>
Gerrit-Comment-Date: Mon, 20 Oct 2025 00:28:38 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Paul Berry (Gerrit)

unread,
Oct 19, 2025, 10:32:54 PM (2 days ago) Oct 19
to Konstantin Shcheglov, Johnni Winther, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther and Konstantin Shcheglov

Paul Berry voted and added 4 comments

Votes added by Paul Berry

Code-Review+1

4 comments

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Paul Berry . resolved

lgtm assuming review comments are addressed

File pkg/analyzer/test/src/dart/analysis/driver_test.dart
Line 73806, Patchset 5 (Latest):const a = -'' + 1;
Paul Berry . unresolved

This is an invalid constant, right?

So the purpose of the test is just to make sure the implementation doesn't crash?

Assuming that's correct, could you include a comment explaining tha, so that readers of the test won't be confused?

Line 73888, Patchset 5 (Latest):const b = 0.length + 1;
Paul Berry . unresolved

Same issue here

Line 73955, Patchset 5 (Latest):const a = -'' + 1;
Paul Berry . unresolved

Same issue here

Open in Gerrit

Related details

Attention is currently required from:
  • Johnni Winther
  • Konstantin Shcheglov
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: I2a7da9296996bb7701e4815c6b720b49e19ac1c5
Gerrit-Change-Number: 455900
Gerrit-PatchSet: 5
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Johnni Winther <johnni...@google.com>
Gerrit-Comment-Date: Mon, 20 Oct 2025 02:32:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Oct 19, 2025, 11:38:15 PM (2 days ago) Oct 19
to Paul Berry, Johnni Winther, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther

Konstantin Shcheglov added 3 comments

File pkg/analyzer/test/src/dart/analysis/driver_test.dart
Line 73806, Patchset 5:const a = -'' + 1;
Paul Berry . resolved

This is an invalid constant, right?

So the purpose of the test is just to make sure the implementation doesn't crash?

Assuming that's correct, could you include a comment explaining tha, so that readers of the test won't be confused?

Konstantin Shcheglov

Done

Line 73888, Patchset 5:const b = 0.length + 1;
Paul Berry . resolved

Same issue here

Konstantin Shcheglov

Done

Line 73955, Patchset 5:const a = -'' + 1;
Paul Berry . resolved

Same issue here

Konstantin Shcheglov

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Johnni Winther
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: I2a7da9296996bb7701e4815c6b720b49e19ac1c5
Gerrit-Change-Number: 455900
Gerrit-PatchSet: 6
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-Attention: Johnni Winther <johnni...@google.com>
Gerrit-Comment-Date: Mon, 20 Oct 2025 03:38:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Berry <paul...@google.com>
satisfied_requirement
open
diffy

Johnni Winther (Gerrit)

unread,
Oct 20, 2025, 5:16:34 AM (yesterday) Oct 20
to Konstantin Shcheglov, Paul Berry, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov

Johnni Winther voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Konstantin Shcheglov
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: I2a7da9296996bb7701e4815c6b720b49e19ac1c5
Gerrit-Change-Number: 455900
Gerrit-PatchSet: 6
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Mon, 20 Oct 2025 09:16:26 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Oct 20, 2025, 1:07:33 PM (yesterday) Oct 20
to Johnni Winther, Paul Berry, Commit Queue, dart-analys...@google.com, rev...@dartlang.org

Konstantin Shcheglov 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: I2a7da9296996bb7701e4815c6b720b49e19ac1c5
Gerrit-Change-Number: 455900
Gerrit-PatchSet: 6
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-Comment-Date: Mon, 20 Oct 2025 17:07:30 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Commit Queue (Gerrit)

unread,
Oct 20, 2025, 1:07:44 PM (yesterday) Oct 20
to Konstantin Shcheglov, Johnni Winther, Paul Berry, dart-analys...@google.com, rev...@dartlang.org

Commit Queue submitted the change

Change information

Commit message:
Fine. Fix NPE when constant expression uses operator of unnamed extension.
Change-Id: I2a7da9296996bb7701e4815c6b720b49e19ac1c5
Reviewed-by: Paul Berry <paul...@google.com>
Commit-Queue: Konstantin Shcheglov <sche...@google.com>
Reviewed-by: Johnni Winther <johnni...@google.com>
Files:
  • M pkg/analyzer/lib/src/dart/analysis/driver.dart
  • M pkg/analyzer/lib/src/fine/manifest_ast.dart
  • M pkg/analyzer/test/src/dart/analysis/driver_test.dart
  • M pkg/analyzer/test/src/dart/analysis/result_printer.dart
Change size: L
Delta: 4 files changed, 283 insertions(+), 34 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Paul Berry, +1 by Johnni Winther
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: I2a7da9296996bb7701e4815c6b720b49e19ac1c5
Gerrit-Change-Number: 455900
Gerrit-PatchSet: 7
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages