Stop using getResolvedLibrary2 in dartfuzz.

Change-Id: I1023be7cc595398748a4862f3dc181b32466275a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/218584
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2021-10-30 01:22:31 +00:00 committed by commit-bot@chromium.org
parent cd59d39fe3
commit 3f6815a9e6
2 changed files with 2 additions and 2 deletions

View file

@ -346,7 +346,7 @@ void main() async {
Future<void> visitLibraryAtUri(AnalysisSession session, String uri) async {
final libPath = session.uriConverter.uriToPath(Uri.parse(uri));
var result = await session.getResolvedLibrary2(libPath!);
var result = await session.getResolvedLibrary(libPath!);
if (result is ResolvedLibraryResult) {
visitLibrary(result.element);
} else {

View file

@ -1340,7 +1340,7 @@ Future<void> getDataTypes(Set<InterfaceType> allTypes, String? dartTop) async {
Future<void> visitLibraryAtUri(
AnalysisSession session, String uri, Set<InterfaceType> allTypes) async {
var libPath = session.uriConverter.uriToPath(Uri.parse(uri));
var result = await session.getResolvedLibrary2(libPath!);
var result = await session.getResolvedLibrary(libPath!);
if (result is ResolvedLibraryResult) {
visitLibrary(result.element, allTypes);
} else {