Skip to content

Commit

Permalink
[element model] migrate linter_context_impl_test
Browse files Browse the repository at this point in the history
Change-Id: I7b64772066cb37025b8f1696923fa3e431126702
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396628
Commit-Queue: Konstantin Shcheglov <[email protected]>
Auto-Submit: Phil Quitslund <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
  • Loading branch information
pq authored and Commit Queue committed Nov 21, 2024
1 parent e19bc57 commit 53844a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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 @@ -225,7 +225,6 @@ 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/lint/linter/linter_context_impl_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
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ abstract class AbstractLinterContextTest extends PubPackageResolutionTest {
unit: result.unit,
);

var libraryElement = result.libraryElement;
var libraryElement = result.libraryElement2;
var analysisContext = libraryElement.session.analysisContext;
var libraryPath = libraryElement.source.fullName;
var libraryPath = libraryElement.firstFragment.source.fullName;
var workspace = analysisContext.contextRoot.workspace;
var workspacePackage = workspace.findPackageFor(libraryPath);

Expand Down

0 comments on commit 53844a6

Please sign in to comment.