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

Unified Diff: compiler/java/com/google/dart/compiler/ast/ASTVisitor.java

Issue 10384142: Initial support for 'Extract temp' - only when single expression selected (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use ASTVisitor as type switch Created 8 years, 7 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: compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java b/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
index 153e726899cc8717a13294fb077ac598230d6aa8..774c2e4c084f0cf096a31ed15e72e0c5752bdb29 100644
--- a/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
+++ b/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
@@ -82,7 +82,7 @@ public class ASTVisitor<R> {
}
public R visitArrayLiteral(DartArrayLiteral node) {
- return visitExpression(node);
+ return visitTypedLiteral(node);
}
public R visitAssertion(DartAssertion node) {
@@ -213,9 +213,13 @@ public class ASTVisitor<R> {
return visitDirective(node);
}
- public R visitMapLiteral(DartMapLiteral node) {
+ public R visitTypedLiteral(DartTypedLiteral node) {
return visitExpression(node);
}
+
+ public R visitMapLiteral(DartMapLiteral node) {
+ return visitTypedLiteral(node);
+ }
public R visitMapLiteralEntry(DartMapLiteralEntry node) {
return visitNode(node);
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/ASTRewriteAnalyzer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698