commit | 41a23711d95fc450ae88de553dd78daa070e5cc8 | [log] [tgz] |
---|---|---|
author | Konstantin Shcheglov <scheglov@google.com> | Thu Jun 13 17:50:30 2019 +0000 |
committer | Konstantin Shcheglov <scheglov@google.com> | Thu Jun 13 17:50:30 2019 +0000 |
tree | 7848bf95e5468f2c3bff71b5205a827cc838cae9 | |
parent | f9c2e3856b920bcabf31d7cc3369a9900d7b2668 [diff] |
Support for LinkedElementFactory in getLibraryElement(). R=brianwilkerson@google.com Change-Id: I82d613d33beaaa8c46a718996993fd4c8e584d3a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105966 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/analyzer/lib/src/dart/analysis/library_context.dart b/pkg/analyzer/lib/src/dart/analysis/library_context.dart index f7a71ea..be5e922 100644 --- a/pkg/analyzer/lib/src/dart/analysis/library_context.dart +++ b/pkg/analyzer/lib/src/dart/analysis/library_context.dart
@@ -133,6 +133,9 @@ * Get the [LibraryElement] for the given library. */ LibraryElement getLibraryElement(FileState library) { + if (elementFactory != null) { + return elementFactory.libraryOfUri(library.uriStr); + } return resynthesizer.getLibraryElement(library.uriStr); }