Branch: refs/heads/main
Home:
https://github.com/dart-lang/sdk
Commit: 8cbfb32907df8f5113469f3336a1393dad691c80
https://github.com/dart-lang/sdk/commit/8cbfb32907df8f5113469f3336a1393dad691c80
Author: Konstantin Shcheglov <
sche...@google.com>
Date: 2026-04-29 (Wed, 29 Apr 2026)
Changed paths:
M pkg/analyzer/lib/src/summary2/constructor_initializer_resolver.dart
M pkg/analyzer/lib/src/summary2/default_types_builder.dart
M pkg/analyzer/lib/src/summary2/element_builder.dart
M pkg/analyzer/lib/src/summary2/link.dart
M pkg/analyzer/lib/src/summary2/named_type_builder.dart
M pkg/analyzer/lib/src/summary2/reference_resolver.dart
M pkg/analyzer/lib/src/summary2/simply_bounded.dart
M pkg/analyzer/lib/src/summary2/super_constructor_resolver.dart
M pkg/analyzer/lib/src/summary2/top_level_inference.dart
M pkg/analyzer/lib/src/summary2/type_alias.dart
M pkg/analyzer/lib/src/summary2/types_builder.dart
M pkg/analyzer/lib/src/summary2/variance_builder.dart
Log Message:
-----------
CQ. Encapsulate and rename fragment to AST node mapping.
Make Linker own the mapping from declaration fragments to the AST nodes
that produced them. Replace direct writes and reads of the mapping with
setFragmentNode and getLinkingNode, and make the backing map private.
Remove the temporary getLinkingNode2 helper and update callers to use
the single accessor. Narrow related APIs to implementation types where
the lookup is only valid for fragments and elements that are currently
being linked.
This keeps the fragment-to-node association as a Linker implementation
detail and prevents unrelated element objects from being used as map
keys.
Change-Id: Ife5f1d1648c5726b9944d9946c2b71720965a724
Reviewed-on:
https://dart-review.googlesource.com/c/sdk/+/499140
Reviewed-by: Johnni Winther <
johnni...@google.com>
Commit-Queue: Konstantin Shcheglov <
sche...@google.com>
Reviewed-by: Paul Berry <
paul...@google.com>
To unsubscribe from these emails, change your notification settings at
https://github.com/dart-lang/sdk/settings/notifications