[M] Change in dart/sdk[main]: CQ. Give TypeParameterScope the enclosing library FeatureSet.

0 views
Skip to first unread message

Johnni Winther (Gerrit)

unread,
Feb 13, 2026, 4:36:58 AM (3 days ago) Feb 13
to Konstantin Shcheglov, Paul Berry, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov and Paul Berry

Johnni Winther voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Konstantin Shcheglov
  • Paul Berry
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: I4c7f9613ea8ef513e27bb08e453b8ae6615cb50a
Gerrit-Change-Number: 480442
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: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Fri, 13 Feb 2026 09:36:53 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Feb 13, 2026, 11:22:48 AM (3 days ago) Feb 13
to Johnni Winther, Paul Berry, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Paul Berry

Konstantin Shcheglov voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention is currently required from:
  • Paul Berry
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: I4c7f9613ea8ef513e27bb08e453b8ae6615cb50a
Gerrit-Change-Number: 480442
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-Comment-Date: Fri, 13 Feb 2026 16:22:45 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Commit Queue (Gerrit)

unread,
Feb 13, 2026, 11:23:20 AM (3 days ago) Feb 13
to Konstantin Shcheglov, Johnni Winther, Paul Berry, dart-analys...@google.com, rev...@dartlang.org

Commit Queue submitted the change

Change information

Commit message:
CQ. Give TypeParameterScope the enclosing library FeatureSet.

TypeParameterScope previously relied on
TypeParameterElement.isWildcardVariable to decide whether to exclude `_`
from scope. That check consults the element's library FeatureSet, which
can be unset, while we still building elements.

Plumb the current LibraryFragmentImpl through ScopeResolverVisitor and
ReferenceResolver, and pass the enclosing library FeatureSet into
TypeParameterScope so `_` is treated as a wildcard when the
wildcard_variables feature is enabled.
Change-Id: I4c7f9613ea8ef513e27bb08e453b8ae6615cb50a
Reviewed-by: Johnni Winther <johnni...@google.com>
Commit-Queue: Konstantin Shcheglov <sche...@google.com>
Files:
  • M pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart
  • M pkg/analyzer/lib/src/dart/element/scope.dart
  • M pkg/analyzer/lib/src/generated/resolver.dart
  • M pkg/analyzer/lib/src/summary2/ast_resolver.dart
  • M pkg/analyzer/lib/src/summary2/library_builder.dart
  • M pkg/analyzer/lib/src/summary2/reference_resolver.dart
Change size: M
Delta: 6 files changed, 112 insertions(+), 20 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Johnni Winther
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: I4c7f9613ea8ef513e27bb08e453b8ae6615cb50a
Gerrit-Change-Number: 480442
Gerrit-PatchSet: 3
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages