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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/DartUiTest.java

Issue 10834222: Initial implementation of 'Create Method' quick fix (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use resolveUnit() in ASTProvider Created 8 years, 4 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.tools.ui_test/src/com/google/dart/tools/ui/DartUiTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/DartUiTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/DartUiTest.java
index c8d433bd40c89aa29fde5148ac9b16d700fea9bf..e5fd95f0741f673ae9fea69e6555f8b28205b677 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/DartUiTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/DartUiTest.java
@@ -25,6 +25,7 @@ import com.google.dart.tools.core.model.Method;
import com.google.dart.tools.core.model.SourceFileElement;
import com.google.dart.tools.core.model.Type;
import com.google.dart.tools.core.problem.ProblemRequestor;
+import com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities;
import com.google.dart.tools.core.workingcopy.WorkingCopyOwner;
import com.google.dart.tools.ui.internal.text.functions.DartHeuristicScanner;
import com.google.dart.tools.ui.text.DartPartitions;
@@ -98,7 +99,7 @@ public class DartUiTest extends TestCase {
public void testNodeFinder() throws DartModelException {
CompilationUnit cu = getExampleCompUnit();
- DartNode node = DartToolsPlugin.getDefault().getASTProvider().getAST(cu, null, null);
+ DartNode node = DartCompilerUtilities.parseUnit(cu);
// TODO stop decrementing length when parser starts including final brace
DartNode block = NodeFinder.perform(node, BLOCK_START, BLOCK_LENGTH - 1);
assertTrue(block instanceof DartBlock);

Powered by Google App Engine
This is Rietveld 408576698