[dart-lang/sdk] bf5756: DeCo. Give LocalScope and FormalParameterScope ins...

0 views
Skip to first unread message

Konstantin Scheglov

unread,
Feb 23, 2026, 6:34:52 PM (13 hours ago) Feb 23
to com...@dartlang.org
Branch: refs/heads/main
Home: https://github.com/dart-lang/sdk
Commit: bf5756b5a039324921da4426d631e4ed5b094dcb
https://github.com/dart-lang/sdk/commit/bf5756b5a039324921da4426d631e4ed5b094dcb
Author: Konstantin Shcheglov <sche...@google.com>
Date: 2026-02-23 (Mon, 23 Feb 2026)

Changed paths:
M pkg/analyzer/lib/src/dart/element/extensions.dart
M pkg/analyzer/lib/src/dart/element/scope.dart
M pkg/analyzer/lib/src/dart/resolver/scope_context.dart

Log Message:
-----------
DeCo. Give LocalScope and FormalParameterScope instance of FeatureSet.

Thread the library FeatureSet into LocalScope and FormalParameterScope
so wildcard handling can be decided directly from the active language
features.

This removes reliance on per-element `isWildcardVariable` checks (which
require digging through element/library state) and centralizes the
`wildcard_variables` gate in scope construction and mutation.

Also:
- Drop the now-unneeded nullable `Element?.isWildcardVariable` helper.
- Remove the extensions import from scope.dart and add lightweight
assertions around LocalScope inputs.

Change-Id: I3a0f2e0528464c48a0b944590eb4dcee918a12e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/482982
Reviewed-by: Paul Berry <paul...@google.com>
Commit-Queue: Konstantin Shcheglov <sche...@google.com>



To unsubscribe from these emails, change your notification settings at https://github.com/dart-lang/sdk/settings/notifications
Reply all
Reply to author
Forward
0 new messages