File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ lib/src/rules/invalid_runtime_check_with_js_interop_types.dart
66lib/src/rules/prefer_asserts_in_initializer_lists.dart
77lib/src/rules/prefer_final_fields.dart
88lib/src/rules/prefer_initializing_formals.dart
9- lib/src/rules/public_member_api_docs.dart
109lib/src/rules/unnecessary_overrides.dart
1110lib/src/rules/use_build_context_synchronously.dart
1211lib/src/rules/use_late_for_private_fields_and_variables.dart
Original file line number Diff line number Diff line change @@ -111,12 +111,14 @@ class _Visitor extends SimpleAstVisitor<void> {
111111
112112 /// Whether [node] overrides some other member.
113113 bool isOverridingMember (Declaration node) =>
114- context.inheritanceManager.overriddenMember (node.declaredElement) != null ;
114+ context.inheritanceManager
115+ .overriddenMember2 (node.declaredFragment? .element) !=
116+ null ;
115117
116118 @override
117119 void visitClassDeclaration (ClassDeclaration node) {
118- var element = node.declaredElement ;
119- if (element == null || element.hasInternal) return ;
120+ var element = node.declaredFragment ? .element ;
121+ if (element == null || element.metadata2. hasInternal) return ;
120122 _visitMembers (node, node.name, node.members);
121123 }
122124
@@ -219,8 +221,8 @@ class _Visitor extends SimpleAstVisitor<void> {
219221
220222 @override
221223 void visitExtensionTypeDeclaration (ExtensionTypeDeclaration node) {
222- var element = node.declaredElement ;
223- if (element == null || element.hasInternal) return ;
224+ var element = node.declaredFragment ? .element ;
225+ if (element == null || element.metadata2. hasInternal) return ;
224226 _visitMembers (node, node.name, node.members);
225227 }
226228
You can’t perform that action at this time.
0 commit comments