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

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

Issue 1554153002: null namespace check - fixes #25331 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cfe0ca7993c46599bca6d5fffa7011e05624c5c7..602503e789842eda3251958ee1ae8fc44ce2fbc3 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
@@ -204,9 +204,7 @@ class DartCompletionRequestImpl implements DartCompletionRequest {
@override
Future<List<Directive>> resolveDirectives() async {
CompilationUnit libUnit;
- if (librarySource == source) {
- libUnit = target.unit;
- } else if (librarySource != null) {
+ if (librarySource != null) {
// TODO(danrubel) only resolve the directives
const RESOLVE_DIRECTIVES_TAG = 'resolve directives';
performance.logStartTime(RESOLVE_DIRECTIVES_TAG);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698