File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ lib/src/rules/prefer_equal_for_default_values.dart
137137lib/src/rules/prefer_expression_function_bodies.dart
138138lib/src/rules/prefer_final_in_for_each.dart
139139lib/src/rules/prefer_final_locals.dart
140+ lib/src/rules/prefer_final_parameters.dart
140141lib/src/rules/prefer_for_elements_to_map_fromIterable.dart
141142lib/src/rules/prefer_foreach.dart
142143lib/src/rules/prefer_function_declarations_over_variables.dart
@@ -179,6 +180,7 @@ lib/src/rules/tighten_type_of_initializing_formals.dart
179180lib/src/rules/type_annotate_public_apis.dart
180181lib/src/rules/type_init_formals.dart
181182lib/src/rules/type_literal_in_constant_pattern.dart
183+ lib/src/rules/unawaited_futures.dart
182184lib/src/rules/unintended_html_in_doc_comment.dart
183185lib/src/rules/unnecessary_await_in_return.dart
184186lib/src/rules/unnecessary_brace_in_string_interps.dart
Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ class _Visitor extends SimpleAstVisitor<void> {
7171 param is SuperFormalParameter ) {
7272 continue ;
7373 }
74- var declaredElement = param.declaredElement ;
74+ var declaredElement = param.declaredFragment ? .element ;
7575 if (declaredElement != null &&
7676 ! declaredElement.isInitializingFormal &&
7777 ! declaredElement.isWildcardVariable &&
78- ! body.isPotentiallyMutatedInScope (declaredElement)) {
78+ ! body.isPotentiallyMutatedInScope2 (declaredElement)) {
7979 rule.reportLint (param, arguments: [param.name! .lexeme]);
8080 }
8181 }
You can’t perform that action at this time.
0 commit comments