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

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

Issue 2226613004: Suppress follow-on errors when a file is imported with either a prefix or a show clause (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cache URI existence in a modifier' Created 4 years, 4 months 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/completion_manager.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart b/pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart
index e582d3713d12b59100ff19098df0696b1925cd94..f05284dc5ff1e77084245d33c80e9ff00914ea8d 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart
@@ -286,7 +286,7 @@ class DartCompletionRequestImpl implements DartCompletionRequest {
}
_resolvedImports = <ImportElement>[];
for (ImportElement importElem in libElem.imports) {
- if (importElem.importedLibrary.exportNamespace == null) {
+ if (importElem.importedLibrary?.exportNamespace == null) {
await _computeAsync(this, importElem.importedLibrary.source,
LIBRARY_ELEMENT4, performance, 'resolve imported library');
checkAborted();

Powered by Google App Engine
This is Rietveld 408576698