Skip to content

Commit

Permalink
[CQ] cleanup (migration-related) extension naming
Browse files Browse the repository at this point in the history
Change-Id: Ic304f7c2f84663d289034b647538cf75a4c2429c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403700
Commit-Queue: Phil Quitslund <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
  • Loading branch information
pq authored and Commit Queue committed Jan 8, 2025
1 parent 7234e6f commit 9452875
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/linter/lib/src/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ extension BlockExtension on Block {
}
}

extension ClassElement2Extension on ClassElement2 {
extension ClassElementExtension on ClassElement2 {
bool get hasImmutableAnnotation {
var inheritedAndSelfElements = <InterfaceElement2>[
...allSupertypes.map((t) => t.element3),
Expand Down Expand Up @@ -309,7 +309,7 @@ extension DartTypeExtension on DartType? {
_extendsClass(type.superclass, seenElements, className, library));
}

extension ElementExtension2 on Element2? {
extension ElementExtension on Element2? {
Element2? get canonicalElement2 => switch (this) {
PropertyAccessorElement2(:var variable3?) => variable3,
_ => this,
Expand Down Expand Up @@ -482,7 +482,7 @@ extension InhertanceManager3Extension on InheritanceManager3 {
}
}

extension InterfaceElement2Extension on InterfaceElement2 {
extension InterfaceElementExtension on InterfaceElement2 {
/// Whether this element has the exact [name] and defined in the file with
/// the given [uri].
bool isExactly(String name, Uri uri) =>
Expand Down

0 comments on commit 9452875

Please sign in to comment.