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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/ast_include.dart

Issue 185603002: Update and analyzer snapshot with AST -> Ast rename. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for analyzer version in 'intl' package. 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/util/plugins/com.google.dart.java2dart/resources/ast_include.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/ast_include.dart b/editor/util/plugins/com.google.dart.java2dart/resources/ast_include.dart
index 361d6fcae925dde4f85413dccc3f57530d44616e..9ccd5aa7da821d92906cf77ee3ecba8e2f8d3a9e 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/ast_include.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/ast_include.dart
@@ -2,7 +2,7 @@
/**
* Instances of the class {@code NodeList} represent a list of AST nodes that have a common parent.
*/
-class NodeList<E extends ASTNode> extends Object with ListMixin<E> {
+class NodeList<E extends AstNode> extends Object with ListMixin<E> {
/**
* Create an empty list with the given owner. This is a convenience method that allows the
* compiler to determine the correct value of the type argument [E] without needing to
@@ -11,12 +11,12 @@ class NodeList<E extends ASTNode> extends Object with ListMixin<E> {
* @param owner the node that is the parent of each of the elements in the list
* @return the list that was created
*/
- static NodeList create(ASTNode owner) => new NodeList(owner);
+ static NodeList create(AstNode owner) => new NodeList(owner);
/**
* The node that is the parent of each of the elements in the list.
*/
- ASTNode owner;
+ AstNode owner;
/**
* The elements contained in the list.
@@ -35,7 +35,7 @@ class NodeList<E extends ASTNode> extends Object with ListMixin<E> {
*
* @param visitor the visitor to be used to visit the elements of this list
*/
- accept(ASTVisitor visitor) {
+ accept(AstVisitor visitor) {
var length = _elements.length;
for (var i = 0; i < length; i++) {
_elements[i].accept(visitor);
@@ -103,7 +103,7 @@ class NodeList<E extends ASTNode> extends Object with ListMixin<E> {
E removedNode = _elements[index] as E;
int length = _elements.length;
if (length == 1) {
- _elements = ASTNode.EMPTY_ARRAY;
+ _elements = AstNode.EMPTY_ARRAY;
return removedNode;
}
_elements.removeAt(index);

Powered by Google App Engine
This is Rietveld 408576698