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

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

Issue 10021017: Adds parser recovery for type parameters and type arguments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updates for completion to work Created 8 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/ast/DartSyntheticErrorIdentifier.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9640dfccd2dc47c4da431a28f7ebf52cfa0050bc..153e726899cc8717a13294fb077ac598230d6aa8 100644
--- a/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
+++ b/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -8,9 +8,9 @@ import java.util.List;
/**
* A visitor for abstract syntax tree.
- *
+ *
* <pre>
- *
+ *
* public R visitArrayAccess(DartArrayAccess node) {
* // Actions before visiting subnodes.
* node.visitChildren(this);
@@ -18,13 +18,13 @@ import java.util.List;
* return node;
* }
* </pre>
- *
+ *
* <p>
* In addition, this visitor takes advantage of the AST-node class hierarchy and makes it easy to
* perform an action for, for example, all statements:
- *
+ *
* <pre>
- *
+ *
* public R visitStatement(DartStatement node) {
* // Action that must be performed for all statements.
* }
@@ -289,6 +289,10 @@ public class ASTVisitor<R> {
return visitExpression(node);
}
+ public R visitSyntheticErrorIdentifier(DartSyntheticErrorIdentifier node) {
+ return visitIdentifier(node);
+ }
+
public R visitSyntheticErrorStatement(DartSyntheticErrorStatement node) {
return visitStatement(node);
}
@@ -355,5 +359,5 @@ public class ASTVisitor<R> {
public R visitRedirectConstructorInvocation(DartRedirectConstructorInvocation node) {
return visitInvocation(node);
- }
+ }
}
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/ast/DartSyntheticErrorIdentifier.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698