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

Unified Diff: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java

Issue 175453002: Issue 17007. Show 'Split && condition' only for && operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java
index 6e6a1f5bb4324e926b53c2fe109e1df55c037365..00484a8b9cbaf634989996cea8e8f32f8c26d059 100644
--- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java
@@ -1138,6 +1138,10 @@ public class QuickAssistProcessorImpl implements QuickAssistProcessor {
if (offset == -1) {
return;
}
+ // should be &&
+ if (binaryExpression.getOperator().getType() != TokenType.AMPERSAND_AMPERSAND) {
+ return;
+ }
// prepare "if"
Statement statement = node.getAncestor(Statement.class);
if (!(statement instanceof IfStatement)) {

Powered by Google App Engine
This is Rietveld 408576698