diff --git a/pkg/analyzer/analyzer_use_new_elements.txt b/pkg/analyzer/analyzer_use_new_elements.txt index 2937379e6d30..278e31ba645e 100644 --- a/pkg/analyzer/analyzer_use_new_elements.txt +++ b/pkg/analyzer/analyzer_use_new_elements.txt @@ -224,7 +224,6 @@ test/src/dart/resolution/prefix_element_test.dart test/src/dart/resolution/resolution.dart test/src/dart/resolution/scope_test.dart test/src/dart/resolution/super_formal_parameter_test.dart -test/src/lint/lint_rule_test.dart test/src/services/top_level_declarations_test.dart test/src/summary/element_text.dart test/src/summary/elements/class_test.dart diff --git a/pkg/analyzer/test/src/lint/lint_rule_test.dart b/pkg/analyzer/test/src/lint/lint_rule_test.dart index cd3158bfebf9..dcc2d36f74fe 100644 --- a/pkg/analyzer/test/src/lint/lint_rule_test.dart +++ b/pkg/analyzer/test/src/lint/lint_rule_test.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. import 'package:analyzer/dart/ast/token.dart'; -import 'package:analyzer/dart/element/element.dart'; +import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/diagnostic/diagnostic.dart'; import 'package:analyzer/error/error.dart'; import 'package:analyzer/error/listener.dart'; @@ -75,8 +75,8 @@ class CollectingReporter extends ErrorReporter { CollectingReporter(super.listener, super.source); @override - void atElement( - Element element, + void atElement2( + Element2 element, ErrorCode errorCode, { List? arguments, List? contextMessages,