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

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

Issue 1042913002: Clean up analyzer hints. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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/optype.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/optype.dart b/pkg/analysis_server/lib/src/services/completion/optype.dart
index f928df25ac033e68f9f5af98f83394677b103d72..d2d6f6c78e0bb8fcc8ec56f7b7e334979449b277 100644
--- a/pkg/analysis_server/lib/src/services/completion/optype.dart
+++ b/pkg/analysis_server/lib/src/services/completion/optype.dart
@@ -401,7 +401,7 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor {
@override
void visitMethodInvocation(MethodInvocation node) {
- if (identical(entity, node.period) && offset > node.period.offset) {
+ if (identical(entity, node.operator) && offset > node.operator.offset) {
// The cursor is between the two dots of a ".." token, so we need to
// generate the completions we would generate after a "." token.
optype.includeInvocationSuggestions = true;

Powered by Google App Engine
This is Rietveld 408576698