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

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

Issue 250823006: Translate parts of engine.services project. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move to pkg/analysis_services/ Created 6 years, 8 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/refactoring/ExtractMethodAnalyzer.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/ExtractMethodAnalyzer.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/ExtractMethodAnalyzer.java
index 91af1c1c289f3566ed02182bc4ce60d087e1e972..f82ff7f26df084969f19353729d564df58c30da6 100644
--- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/ExtractMethodAnalyzer.java
+++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/ExtractMethodAnalyzer.java
@@ -13,8 +13,8 @@
*/
package com.google.dart.engine.services.internal.refactoring;
-import com.google.dart.engine.ast.AstNode;
import com.google.dart.engine.ast.AssignmentExpression;
+import com.google.dart.engine.ast.AstNode;
import com.google.dart.engine.ast.ConstructorInitializer;
import com.google.dart.engine.ast.Expression;
import com.google.dart.engine.ast.ForStatement;
@@ -47,7 +47,7 @@ public class ExtractMethodAnalyzer extends StatementAnalyzer {
if (isFirstSelectedNode(lhs)) {
invalidSelection(
"Cannot extract the left-hand side of an assignment.",
- RefactoringStatusContext.create(lhs));
+ new RefactoringStatusContext(lhs));
}
return null;
}
@@ -58,7 +58,7 @@ public class ExtractMethodAnalyzer extends StatementAnalyzer {
if (isFirstSelectedNode(node)) {
invalidSelection(
"Cannot extract a constructor initializer. Select expression part of initializer.",
- RefactoringStatusContext.create(node));
+ new RefactoringStatusContext(node));
}
return null;
}
@@ -111,7 +111,7 @@ public class ExtractMethodAnalyzer extends StatementAnalyzer {
if (isFirstSelectedNode(node)) {
invalidSelection(
"Cannot extract a variable declaration fragment. Select whole declaration statement.",
- RefactoringStatusContext.create(node));
+ new RefactoringStatusContext(node));
}
return null;
}

Powered by Google App Engine
This is Rietveld 408576698