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

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

Issue 803913003: fix named constructor completion (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/imported_computer.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/imported_computer.dart b/pkg/analysis_server/lib/src/services/completion/imported_computer.dart
index 5b0d947e20b52a561e591de59c4d438abd18dbd0..51d58249d7895fce76efe712641468802827f643 100644
--- a/pkg/analysis_server/lib/src/services/completion/imported_computer.dart
+++ b/pkg/analysis_server/lib/src/services/completion/imported_computer.dart
@@ -167,7 +167,7 @@ class _ImportedAstVisitor extends
// Make suggestions for the prefix, but not for the selector
// InvocationComputer makes selector suggestions
Token period = node.period;
- if (period != null && request.offset <= period.offset) {
+ if (period == null || request.offset <= period.offset) {
return new _ImportedSuggestionBuilder(request, excludeVoidReturn: true);
}
return null;

Powered by Google App Engine
This is Rietveld 408576698