[XL] Change in dart/sdk[main]: [cfe][PrimaryConstructors] Treat enum generative constructors as impl...

0 views
Skip to first unread message

Johnni Winther (Gerrit)

unread,
Apr 21, 2026, 9:27:37 AM (yesterday) Apr 21
to Konstantin Shcheglov, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-fe-te...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov

Johnni Winther voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Konstantin Shcheglov
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: Ic12f31b52468d3f725861bce20e259029dfd1d74
Gerrit-Change-Number: 495280
Gerrit-PatchSet: 4
Gerrit-Owner: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Tue, 21 Apr 2026 13:27:34 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Apr 21, 2026, 12:34:57 PM (23 hours ago) Apr 21
to Johnni Winther, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-fe-te...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther

Konstantin Shcheglov voted Code-Review+1

Code-Review+1
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: Ic12f31b52468d3f725861bce20e259029dfd1d74
Gerrit-Change-Number: 495280
Gerrit-PatchSet: 4
Gerrit-Owner: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Johnni Winther <johnni...@google.com>
Gerrit-Comment-Date: Tue, 21 Apr 2026 16:34:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Johnni Winther (Gerrit)

unread,
Apr 21, 2026, 3:00:32 PM (20 hours ago) Apr 21
to Konstantin Shcheglov, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-fe-te...@google.com, rev...@dartlang.org

Johnni Winther 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: Ic12f31b52468d3f725861bce20e259029dfd1d74
Gerrit-Change-Number: 495280
Gerrit-PatchSet: 4
Gerrit-Owner: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Tue, 21 Apr 2026 19:00:27 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

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

unread,
Apr 21, 2026, 3:00:47 PM (20 hours ago) Apr 21
to Johnni Winther, Konstantin Shcheglov, dart-fe-te...@google.com, rev...@dartlang.org

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

Change information

Commit message:
[cfe][PrimaryConstructors] Treat enum generative constructors as implicitly const

This treats enum generative constructors as implicitly const when primary-constructors is enabled.
Change-Id: Ic12f31b52468d3f725861bce20e259029dfd1d74
Reviewed-by: Konstantin Shcheglov <sche...@google.com>
Commit-Queue: Johnni Winther <johnni...@google.com>
Files:
  • M pkg/front_end/lib/src/codes/diagnostic.g.dart
  • M pkg/front_end/lib/src/source/outline_builder.dart
  • M pkg/front_end/messages.yaml
  • M pkg/front_end/testcases/enhanced_enums/malformed_constructors.dart
  • M pkg/front_end/testcases/enhanced_enums/malformed_constructors.dart.strong.expect
  • M pkg/front_end/testcases/enhanced_enums/malformed_constructors.dart.strong.modular.expect
  • M pkg/front_end/testcases/enhanced_enums/malformed_constructors.dart.strong.outline.expect
  • M pkg/front_end/testcases/enhanced_enums/malformed_constructors.dart.strong.transformed.expect
  • M pkg/front_end/testcases/enhanced_enums/malformed_constructors.dart.textual_outline.expect
  • M pkg/front_end/testcases/enhanced_enums/malformed_constructors.dart.textual_outline_modelled.expect
  • M pkg/front_end/testcases/enhanced_enums/missed_checks.dart.strong.expect
  • M pkg/front_end/testcases/enhanced_enums/missed_checks.dart.strong.modular.expect
  • M pkg/front_end/testcases/enhanced_enums/missed_checks.dart.strong.outline.expect
  • M pkg/front_end/testcases/enhanced_enums/missed_checks.dart.strong.transformed.expect
  • M pkg/front_end/testcases/enhanced_enums/super_parameters/malformed_constructors.dart
  • M pkg/front_end/testcases/enhanced_enums/super_parameters/malformed_constructors.dart.strong.expect
  • M pkg/front_end/testcases/enhanced_enums/super_parameters/malformed_constructors.dart.strong.modular.expect
  • M pkg/front_end/testcases/enhanced_enums/super_parameters/malformed_constructors.dart.strong.outline.expect
  • M pkg/front_end/testcases/enhanced_enums/super_parameters/malformed_constructors.dart.strong.transformed.expect
  • M pkg/front_end/testcases/enhanced_enums/super_parameters/malformed_constructors.dart.textual_outline.expect
  • M pkg/front_end/testcases/enhanced_enums/super_parameters/malformed_constructors.dart.textual_outline_modelled.expect
  • A pkg/front_end/testcases/primary_constructors/enum_const_pre_feature.dart
  • A pkg/front_end/testcases/primary_constructors/enum_const_pre_feature.dart.strong.expect
  • A pkg/front_end/testcases/primary_constructors/enum_const_pre_feature.dart.strong.modular.expect
  • A pkg/front_end/testcases/primary_constructors/enum_const_pre_feature.dart.strong.outline.expect
  • A pkg/front_end/testcases/primary_constructors/enum_const_pre_feature.dart.strong.transformed.expect
  • A pkg/front_end/testcases/primary_constructors/enum_const_pre_feature.dart.textual_outline.expect
  • A pkg/front_end/testcases/primary_constructors/enum_const_pre_feature.dart.textual_outline_modelled.expect
  • M pkg/front_end/testcases/primary_constructors/enum_primary_constructor.dart
  • M pkg/front_end/testcases/primary_constructors/enum_primary_constructor.dart.strong.expect
  • M pkg/front_end/testcases/primary_constructors/enum_primary_constructor.dart.strong.modular.expect
  • M pkg/front_end/testcases/primary_constructors/enum_primary_constructor.dart.strong.outline.expect
  • M pkg/front_end/testcases/primary_constructors/enum_primary_constructor.dart.strong.transformed.expect
  • M pkg/front_end/testcases/primary_constructors/enum_primary_constructor.dart.textual_outline.expect
  • M pkg/front_end/testcases/primary_constructors/enum_primary_constructor.dart.textual_outline_modelled.expect
Change size: XL
Delta: 35 files changed, 1379 insertions(+), 168 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: Ic12f31b52468d3f725861bce20e259029dfd1d74
Gerrit-Change-Number: 495280
Gerrit-PatchSet: 5
Gerrit-Owner: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages