[XL] Change in dart/sdk[main]: AST. Implement CompoundAssignment.

1 view
Skip to first unread message

Konstantin Shcheglov (Gerrit)

unread,
Aug 3, 2026, 6:31:32 PM (2 days ago) Aug 3
to Paul Berry, Johnni Winther, dart-...@luci-project-accounts.iam.gserviceaccount.com, 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: Ie294f00d05b80860311a20c3f24b5afcd5f76e75
Gerrit-Change-Number: 530800
Gerrit-PatchSet: 2
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, 03 Aug 2026 22:31:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Paul Berry (Gerrit)

unread,
Aug 4, 2026, 1:01:00 PM (2 days ago) Aug 4
to Konstantin Shcheglov, Johnni Winther, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther and Konstantin Shcheglov

Paul Berry voted and added 2 comments

Votes added by Paul Berry

Code-Review+1

2 comments

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

lgtm assuming comment is addressed.

File pkg/analyzer/api.txt
Line 1417, Patchset 2 (Latest): operatorResultType (getter: DartType?)
Paul Berry . unresolved

Shouldn't there also be getters to access:

  • the LHS of the assignment?
  • the operator token?
  • the RHS of the assignment?
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: Ie294f00d05b80860311a20c3f24b5afcd5f76e75
Gerrit-Change-Number: 530800
Gerrit-PatchSet: 2
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: Tue, 04 Aug 2026 17:00:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Aug 5, 2026, 7:41:43 PM (8 hours ago) Aug 5
to Paul Berry, Johnni Winther, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther

Konstantin Shcheglov added 1 comment

File pkg/analyzer/api.txt
Line 1417, Patchset 2: operatorResultType (getter: DartType?)
Paul Berry . resolved

Shouldn't there also be getters to access:

  • the LHS of the assignment?
  • the operator token?
  • the RHS of the assignment?
Konstantin Shcheglov

These are inherited from `AssignmentExpression2`: `target` is the LHS, `operator` is the operator token, and `value` is the RHS. api.txt only lists the members declared directly by `CompoundAssignment`.

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: Ie294f00d05b80860311a20c3f24b5afcd5f76e75
Gerrit-Change-Number: 530800
Gerrit-PatchSet: 3
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: Wed, 05 Aug 2026 23:41:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Berry <paul...@google.com>
satisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Aug 5, 2026, 8:19:00 PM (7 hours ago) Aug 5
to Paul Berry, Johnni Winther, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther

Konstantin Shcheglov voted Commit-Queue+2

Commit-Queue+2
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: Ie294f00d05b80860311a20c3f24b5afcd5f76e75
Gerrit-Change-Number: 530800
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: Johnni Winther <johnni...@google.com>
Gerrit-Comment-Date: Thu, 06 Aug 2026 00:18:57 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

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

unread,
Aug 5, 2026, 8:19:12 PM (7 hours ago) Aug 5
to Konstantin Shcheglov, Paul Berry, Johnni Winther, dart-analys...@google.com, rev...@dartlang.org

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

Unreviewed changes

2 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: pkg/analyzer/test/src/dart/resolution/assignment_test.dart
Insertions: 83, Deletions: 95.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/dart/ast/ast.dart
Insertions: 2, Deletions: 3.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/error/unused_local_elements_verifier.dart
Insertions: 2, Deletions: 4.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/hint/sdk_constraint_verifier.dart
Insertions: 2, Deletions: 3.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/generated/error_verifier.dart
Insertions: 3, Deletions: 3.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/dart/analysis/driver.dart
Insertions: 1, Deletions: 1.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/error/element_usage_detector.dart
Insertions: 14, Deletions: 3.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/test/src/summary/resolved_ast_printer.dart
Insertions: 2, Deletions: 0.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/test/src/dart/resolution/extension_method_test.dart
Insertions: 12, Deletions: 14.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/dart/resolver/assignment_expression_resolver.dart
Insertions: 6, Deletions: 6.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/dart/analysis/index.dart
Insertions: 2, Deletions: 3.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/test/src/summary/elements/const_test.dart
Insertions: 9, Deletions: 10.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/test/src/diagnostics/use_of_nullable_value_test.dart
Insertions: 12, Deletions: 14.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/test/src/dart/resolution/function_reference_test.dart
Insertions: 6, Deletions: 7.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/generated/resolver.dart
Insertions: 2, Deletions: 4.

The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/analyzer/lib/src/dart/micro/utils.dart
Insertions: 2, Deletions: 3.

The diff is too large to show. Please review the diff.
```

Change information

Commit message:
AST. Implement CompoundAssignment.
Change-Id: Ie294f00d05b80860311a20c3f24b5afcd5f76e75
Commit-Queue: Konstantin Shcheglov <sche...@google.com>
Reviewed-by: Paul Berry <paul...@google.com>
Files:
  • M pkg/analyzer/api.txt
  • M pkg/analyzer/lib/analysis_rule/rule_visitor_registry.g.dart
  • M pkg/analyzer/lib/dart/ast/ast.dart
  • M pkg/analyzer/lib/dart/ast/visitor.g.dart
  • M pkg/analyzer/lib/src/dart/analysis/driver.dart
  • M pkg/analyzer/lib/src/dart/analysis/index.dart
  • M pkg/analyzer/lib/src/dart/ast/ast.dart
  • M pkg/analyzer/lib/src/dart/ast/ast.g.dart
  • M pkg/analyzer/lib/src/dart/ast/element_locator.dart
  • M pkg/analyzer/lib/src/dart/ast/to_source_visitor.dart
  • M pkg/analyzer/lib/src/dart/micro/utils.dart
  • M pkg/analyzer/lib/src/dart/resolver/assignment_expression_resolver.dart
  • M pkg/analyzer/lib/src/dart/resolver/flow_analysis_visitor.dart
  • M pkg/analyzer/lib/src/dart/resolver/property_element_resolver.dart
  • M pkg/analyzer/lib/src/dart/resolver/type_property_resolver.dart
  • M pkg/analyzer/lib/src/error/best_practices_verifier.dart
  • M pkg/analyzer/lib/src/error/const_argument_verifier.dart
  • M pkg/analyzer/lib/src/error/element_usage_detector.dart
  • M pkg/analyzer/lib/src/error/unused_local_elements_verifier.dart
  • M pkg/analyzer/lib/src/fasta/ast_builder.dart
  • M pkg/analyzer/lib/src/generated/error_verifier.dart
  • M pkg/analyzer/lib/src/generated/resolver.dart
  • M pkg/analyzer/lib/src/hint/sdk_constraint_verifier.dart
  • M pkg/analyzer/lib/src/lint/linter_visitor.g.dart
  • M pkg/analyzer/lib/src/summary2/ast_binary_reader.dart
  • M pkg/analyzer/lib/src/summary2/ast_binary_tag.dart
  • M pkg/analyzer/lib/src/summary2/ast_binary_writer.dart
  • M pkg/analyzer/lib/src/summary2/informative_data.dart
  • M pkg/analyzer/lib/src/test_utilities/find_node.dart
  • M pkg/analyzer/lib/src/wolf/ir/ast_to_ir.dart
  • M pkg/analyzer/test/generated/class_member_parser_test.dart
  • M pkg/analyzer/test/id_tests/definite_assignment_test.dart
  • M pkg/analyzer/test/id_tests/definite_unassignment_test.dart
  • M pkg/analyzer/test/id_tests/nullability_test.dart
  • M pkg/analyzer/test/id_tests/type_promotion_test.dart
  • M pkg/analyzer/test/src/dart/ast/ast_test.dart
  • M pkg/analyzer/test/src/dart/ast/element_locator_test.dart
  • M pkg/analyzer/test/src/dart/ast/to_source_visitor_test.dart
  • M pkg/analyzer/test/src/dart/resolution/assignment_test.dart
  • M pkg/analyzer/test/src/dart/resolution/extension_method_test.dart
  • M pkg/analyzer/test/src/dart/resolution/function_reference_test.dart
  • M pkg/analyzer/test/src/diagnostics/use_of_nullable_value_test.dart
  • M pkg/analyzer/test/src/summary/elements/const_test.dart
  • M pkg/analyzer/test/src/summary/resolved_ast_printer.dart
  • M pkg/analyzer/test/src/wolf/ir/ast_to_ir_test.dart
Change size: XL
Delta: 45 files changed, 1760 insertions(+), 168 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Paul Berry
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: Ie294f00d05b80860311a20c3f24b5afcd5f76e75
Gerrit-Change-Number: 530800
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>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages