[L] Change in dart/sdk[main]: Fix simple_directive_paths violations in compiler

0 views
Skip to first unread message

Kevin Moore (Gerrit)

unread,
Mar 29, 2026, 10:12:05 PM (22 hours ago) Mar 29
to Nicholas Shahan, dart2js-te...@google.com, rev...@dartlang.org
Attention needed from Nicholas Shahan

Kevin Moore voted and added 1 comment

Votes added by Kevin Moore

Auto-Submit+1
Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Kevin Moore . resolved

Tried out my new lint

noticed the directives weren't sorted.

Open in Gerrit

Related details

Attention is currently required from:
  • Nicholas Shahan
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: I1b1b60078a27509872ea217b57b928fca7e9ef19
Gerrit-Change-Number: 491600
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Nicholas Shahan <nsh...@google.com>
Gerrit-Attention: Nicholas Shahan <nsh...@google.com>
Gerrit-Comment-Date: Mon, 30 Mar 2026 02:12:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
9:55 AM (11 hours ago) 9:55 AM
to Kevin Moore, Brian Wilkerson, Commit Queue, Nicholas Shahan, dart2js-te...@google.com, rev...@dartlang.org
Attention needed from Kevin Moore and Nicholas Shahan

Brian Wilkerson added 1 comment

Patchset-level comments
Kevin Moore . resolved

Tried out my new lint

noticed the directives weren't sorted.

Brian Wilkerson

Not all users sort their directives. Are you sure that the fix should assume that the directives need to be sorted? We do have a separate 'sort directives' code action that will sort them if that's what the user wants.

Open in Gerrit

Related details

Attention is currently required from:
  • Kevin Moore
  • Nicholas Shahan
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: I1b1b60078a27509872ea217b57b928fca7e9ef19
Gerrit-Change-Number: 491600
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Nicholas Shahan <nsh...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Kevin Moore <kev...@google.com>
Gerrit-Attention: Nicholas Shahan <nsh...@google.com>
Gerrit-Comment-Date: Mon, 30 Mar 2026 13:55:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kevin Moore <kev...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Kevin Moore (Gerrit)

unread,
11:10 AM (9 hours ago) 11:10 AM
to Brian Wilkerson, Commit Queue, Nicholas Shahan, dart2js-te...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and Nicholas Shahan

Kevin Moore added 1 comment

Patchset-level comments
Kevin Moore . resolved

Tried out my new lint

noticed the directives weren't sorted.

Brian Wilkerson

Not all users sort their directives. Are you sure that the fix should assume that the directives need to be sorted? We do have a separate 'sort directives' code action that will sort them if that's what the user wants.

Kevin Moore

Oh I know! When I applied the lint there were several places where the fix was "weird" because the existing directives were mostly sorted.

I figured I'd see if the compiler folks liked...or not...

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • Nicholas Shahan
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: I1b1b60078a27509872ea217b57b928fca7e9ef19
Gerrit-Change-Number: 491600
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Nicholas Shahan <nsh...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Nicholas Shahan <nsh...@google.com>
Gerrit-Comment-Date: Mon, 30 Mar 2026 15:10:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
Comment-In-Reply-To: Kevin Moore <kev...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
11:19 AM (9 hours ago) 11:19 AM
to Kevin Moore, Brian Wilkerson, Commit Queue, Nicholas Shahan, dart2js-te...@google.com, rev...@dartlang.org
Attention needed from Kevin Moore and Nicholas Shahan

Brian Wilkerson added 1 comment

Patchset-level comments
Kevin Moore . resolved

Tried out my new lint

noticed the directives weren't sorted.

Brian Wilkerson

Not all users sort their directives. Are you sure that the fix should assume that the directives need to be sorted? We do have a separate 'sort directives' code action that will sort them if that's what the user wants.

Kevin Moore

Oh I know! When I applied the lint there were several places where the fix was "weird" because the existing directives were mostly sorted.

I figured I'd see if the compiler folks liked...or not...

Brian Wilkerson

The fact that not all of our own code is sorted strongly suggests to me that that fix should only sort the directives if the `directives_ordering` lint is enabled.

Open in Gerrit

Related details

Attention is currently required from:
  • Kevin Moore
  • Nicholas Shahan
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: I1b1b60078a27509872ea217b57b928fca7e9ef19
Gerrit-Change-Number: 491600
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Nicholas Shahan <nsh...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Kevin Moore <kev...@google.com>
Gerrit-Attention: Nicholas Shahan <nsh...@google.com>
Gerrit-Comment-Date: Mon, 30 Mar 2026 15:19:13 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Kevin Moore (Gerrit)

unread,
11:43 AM (9 hours ago) 11:43 AM
to Brian Wilkerson, Commit Queue, Nicholas Shahan, dart2js-te...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and Nicholas Shahan

Kevin Moore added 1 comment

Patchset-level comments
Kevin Moore . resolved

Tried out my new lint

noticed the directives weren't sorted.

Brian Wilkerson

Not all users sort their directives. Are you sure that the fix should assume that the directives need to be sorted? We do have a separate 'sort directives' code action that will sort them if that's what the user wants.

Kevin Moore

Oh I know! When I applied the lint there were several places where the fix was "weird" because the existing directives were mostly sorted.

I figured I'd see if the compiler folks liked...or not...

Brian Wilkerson

The fact that not all of our own code is sorted strongly suggests to me that that fix should only sort the directives if the `directives_ordering` lint is enabled.

Kevin Moore

Of course! See analysis_options. I added the new lint!

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • Nicholas Shahan
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: I1b1b60078a27509872ea217b57b928fca7e9ef19
Gerrit-Change-Number: 491600
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Nicholas Shahan <nsh...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Nicholas Shahan <nsh...@google.com>
Gerrit-Comment-Date: Mon, 30 Mar 2026 15:43:41 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Nicholas Shahan (Gerrit)

unread,
12:15 PM (8 hours ago) 12:15 PM
to Kevin Moore, Brian Wilkerson, Commit Queue, dart2js-te...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and Kevin Moore

Nicholas Shahan voted and added 1 comment

Votes added by Nicholas Shahan

Code-Review+1
Commit-Queue+2

1 comment

Patchset-level comments
Nicholas Shahan . resolved

Thanks, I'm all for keeping things tidy.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • Kevin Moore
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: I1b1b60078a27509872ea217b57b928fca7e9ef19
Gerrit-Change-Number: 491600
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Nicholas Shahan <nsh...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Kevin Moore <kev...@google.com>
Gerrit-Comment-Date: Mon, 30 Mar 2026 16:15:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Commit Queue (Gerrit)

unread,
12:15 PM (8 hours ago) 12:15 PM
to Kevin Moore, Nicholas Shahan, Brian Wilkerson, dart2js-te...@google.com, rev...@dartlang.org

Commit Queue submitted the change

Change information

Commit message:
Fix simple_directive_paths violations in compiler

Also enabled directive ordering, as is common
Removed `use_null_aware_elements` explicitly, since it's in the included set
Change-Id: I1b1b60078a27509872ea217b57b928fca7e9ef19
Commit-Queue: Nicholas Shahan <nsh...@google.com>
Auto-Submit: Kevin Moore <kev...@google.com>
Reviewed-by: Nicholas Shahan <nsh...@google.com>
Files:
  • M pkg/compiler/analysis_options.yaml
  • M pkg/compiler/lib/src/common/codegen.dart
  • M pkg/compiler/lib/src/compiler.dart
  • M pkg/compiler/lib/src/constants/values.dart
  • M pkg/compiler/lib/src/deferred_load/algorithm_state.dart
  • M pkg/compiler/lib/src/deferred_load/entity_data_info.dart
  • M pkg/compiler/lib/src/deferred_load/import_set.dart
  • M pkg/compiler/lib/src/deferred_load/output_unit.dart
  • M pkg/compiler/lib/src/deferred_load/program_split_constraints/builder.dart
  • M pkg/compiler/lib/src/deferred_load/work_queue.dart
  • M pkg/compiler/lib/src/elements/types.dart
  • M pkg/compiler/lib/src/inferrer/builder.dart
  • M pkg/compiler/lib/src/inferrer/computable.dart
  • M pkg/compiler/lib/src/inferrer/engine.dart
  • M pkg/compiler/lib/src/inferrer/trivial.dart
  • M pkg/compiler/lib/src/inferrer/type_graph_dump.dart
  • M pkg/compiler/lib/src/inferrer/types.dart
  • M pkg/compiler/lib/src/io/code_output.dart
  • M pkg/compiler/lib/src/io/kernel_source_information.dart
  • M pkg/compiler/lib/src/io/location_provider.dart
  • M pkg/compiler/lib/src/io/source_file.dart
  • M pkg/compiler/lib/src/io/source_information.dart
  • M pkg/compiler/lib/src/io/source_map_builder.dart
  • M pkg/compiler/lib/src/ir/impact_data.dart
  • M pkg/compiler/lib/src/ir/modular.dart
  • M pkg/compiler/lib/src/ir/visitors.dart
  • M pkg/compiler/lib/src/js/js.dart
  • M pkg/compiler/lib/src/js_backend/backend_impact.dart
  • M pkg/compiler/lib/src/js_backend/constant_emitter.dart
  • M pkg/compiler/lib/src/js_backend/deferred_holder_expression.dart
  • M pkg/compiler/lib/src/js_backend/enqueuer.dart
  • M pkg/compiler/lib/src/js_backend/impact_transformer.dart
  • M pkg/compiler/lib/src/js_backend/js_interop_analysis.dart
  • M pkg/compiler/lib/src/js_backend/namer.dart
  • M pkg/compiler/lib/src/js_backend/records_codegen.dart
  • M pkg/compiler/lib/src/js_backend/runtime_types_new.dart
  • M pkg/compiler/lib/src/js_backend/specialized_checks.dart
  • M pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
  • M pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
  • M pkg/compiler/lib/src/js_emitter/instantiation_stub_generator.dart
  • M pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
  • M pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
  • M pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
  • M pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart
  • M pkg/compiler/lib/src/js_model/closure.dart
  • M pkg/compiler/lib/src/js_model/element_map.dart
  • M pkg/compiler/lib/src/js_model/element_map_impl.dart
  • M pkg/compiler/lib/src/js_model/env.dart
  • M pkg/compiler/lib/src/js_model/js_strategy.dart
  • M pkg/compiler/lib/src/js_model/js_world.dart
  • M pkg/compiler/lib/src/js_model/js_world_builder.dart
  • M pkg/compiler/lib/src/js_model/type_recipe.dart
  • M pkg/compiler/lib/src/kernel/element_map.dart
  • M pkg/compiler/lib/src/kernel/element_map_impl.dart
  • M pkg/compiler/lib/src/kernel/env.dart
  • M pkg/compiler/lib/src/kernel/kernel_impact.dart
  • M pkg/compiler/lib/src/kernel/kernel_strategy.dart
  • M pkg/compiler/lib/src/kernel/kernel_world.dart
  • M pkg/compiler/lib/src/kernel/transformations/modular/factory_specializer.dart
  • M pkg/compiler/lib/src/serialization/serialization.dart
  • M pkg/compiler/lib/src/ssa/builder.dart
  • M pkg/compiler/lib/src/ssa/codegen.dart
  • M pkg/compiler/lib/src/ssa/locals_handler.dart
  • M pkg/compiler/lib/src/ssa/logging.dart
  • M pkg/compiler/lib/src/ssa/optimize.dart
  • M pkg/compiler/lib/src/ssa/ssa.dart
  • M pkg/compiler/lib/src/ssa/type_builder.dart
  • M pkg/compiler/lib/src/universe/codegen_world_builder.dart
  • M pkg/compiler/lib/src/universe/resolution_world_builder.dart
  • M pkg/compiler/lib/src/universe/use.dart
  • M pkg/compiler/lib/src/util/memory_source_file_helper.dart
  • M pkg/compiler/tool/dart2js_stress.dart
  • M pkg/compiler/tool/hot_reload_launcher.dart
  • M pkg/compiler/tool/modular_test_suite_helper.dart
  • M pkg/compiler/tool/track_memory.dart
Change size: L
Delta: 75 files changed, 163 insertions(+), 176 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Nicholas Shahan
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: I1b1b60078a27509872ea217b57b928fca7e9ef19
Gerrit-Change-Number: 491600
Gerrit-PatchSet: 2
Gerrit-Owner: Kevin Moore <kev...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages