Skip to content

Commit

Permalink
[element model] migrate lint_rule_test
Browse files Browse the repository at this point in the history
Change-Id: I885f3895b83159c33509260a009153f605ab5569
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396562
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Phil Quitslund <pquitslund@google.com>
  • Loading branch information
pq authored and Commit Queue committed Nov 21, 2024
1 parent 8e34604 commit 6b2c35e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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 @@ -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
Expand Down
6 changes: 3 additions & 3 deletions pkg/analyzer/test/src/lint/lint_rule_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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<Object>? arguments,
List<DiagnosticMessage>? contextMessages,
Expand Down

0 comments on commit 6b2c35e

Please sign in to comment.