Skip to content

Commit

Permalink
Elements. Migrate BaseOrFinalTypeVerifier.
Browse files Browse the repository at this point in the history
Change-Id: I0fd47be98550d288d3ff1e5fb4c148150ab727b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/395162
Reviewed-by: Brian Wilkerson <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
  • Loading branch information
scheglov authored and Commit Queue committed Nov 14, 2024
1 parent 44371eb commit e819cd8
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 120 deletions.
1 change: 0 additions & 1 deletion pkg/analyzer/analyzer_use_new_elements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ lib/src/dart/resolver/variable_declaration_resolver.dart
lib/src/dart/resolver/yield_statement_resolver.dart
lib/src/diagnostic/diagnostic_factory.dart
lib/src/error/assignment_verifier.dart
lib/src/error/base_or_final_type_verifier.dart
lib/src/error/best_practices_verifier.dart
lib/src/error/correct_override.dart
lib/src/error/dead_code_verifier.dart
Expand Down
6 changes: 3 additions & 3 deletions pkg/analyzer/lib/src/dart/ast/ast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,7 @@ final class ClassDeclarationImpl extends NamedCompilationUnitMemberImpl

@experimental
@override
ClassFragment? get declaredFragment => declaredElement as ClassFragment;
ClassElementImpl? get declaredFragment => declaredElement;

@override
Token get endToken => rightBracket;
Expand Down Expand Up @@ -3052,7 +3052,7 @@ final class ClassTypeAliasImpl extends TypeAliasImpl implements ClassTypeAlias {

@experimental
@override
ClassFragment? get declaredFragment => declaredElement as ClassFragment?;
ClassElementImpl? get declaredFragment => declaredElement;

@override
Token get firstTokenAfterCommentAndMetadata {
Expand Down Expand Up @@ -12267,7 +12267,7 @@ final class MixinDeclarationImpl extends NamedCompilationUnitMemberImpl

@experimental
@override
MixinFragment? get declaredFragment => declaredElement as MixinFragment?;
MixinElementImpl? get declaredFragment => declaredElement;

@override
Token get endToken => rightBracket;
Expand Down
Loading

0 comments on commit e819cd8

Please sign in to comment.