Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: pkg/analysis_server/lib/src/services/completion/dart/static_member_contributor.dart

Issue 1516963002: simplify library element accessor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/completion/dart/static_member_contributor.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/static_member_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/static_member_contributor.dart
index 301e5d8560b36e9bf7be2fa8e56eacf406339bc6..d1d281661f333e7ca9144db74076150a591a28c6 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart/static_member_contributor.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart/static_member_contributor.dart
@@ -36,7 +36,7 @@ class StaticMemberContributor extends DartCompletionContributor {
if (targetId is Identifier && !request.target.isCascade) {
Element elem = targetId.bestElement;
if (elem is ClassElement) {
- LibraryElement containingLibrary = await request.libraryElement;
+ LibraryElement containingLibrary = request.libraryElement;
// Gracefully degrade if the library could not be determined
// e.g. detached part file or source change
if (containingLibrary == null) {

Powered by Google App Engine
This is Rietveld 408576698