Skip to content

Commit

Permalink
[element model] migrate import_library_element_test
Browse files Browse the repository at this point in the history
Change-Id: I26235271301ef7691bd9559f57691e4e5f9d8ddc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401864
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
  • Loading branch information
pq authored and Commit Queue committed Dec 19, 2024
1 parent 3d2fd70 commit e0fc779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/analyzer_plugin/analyzer_use_new_elements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ lib/utilities/completion/suggestion_builder.dart
lib/utilities/completion/type_member_contributor.dart
lib/utilities/range_factory.dart
test/src/utilities/change_builder/change_builder_dart_test.dart
test/src/utilities/change_builder/dart/import_library_element_test.dart
test/src/utilities/completion/completion_target_test.dart
test/src/utilities/visitors/local_declaration_visitor_test.dart
test/support/abstract_context.dart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ class _Base extends AbstractContextTest with DartChangeBuilderMixin {

var requestedResult =
await (await session).getLibraryByUri(uriStr) as LibraryElementResult;
var requestedLibrary = requestedResult.element;
var requestedElement = requestedLibrary.exportNamespace.get(name);
var requestedLibrary = requestedResult.element2;
var requestedElement = requestedLibrary.exportNamespace.get2(name);
expect(requestedElement, isNotNull, reason: '`$name` in $uriStr');

var builder = await newBuilder();
Expand Down

0 comments on commit e0fc779

Please sign in to comment.