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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/ast.dart

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.ast; 4 library engine.ast;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'java_core.dart'; 7 import 'java_core.dart';
8 import 'java_engine.dart'; 8 import 'java_engine.dart';
9 import 'error.dart'; 9 import 'error.dart';
10 import 'source.dart' show LineInfo; 10 import 'source.dart' show LineInfo;
(...skipping 13027 matching lines...) Expand 10 before | Expand all | Expand 10 after
13038 */ 13038 */
13039 accept(ASTVisitor visitor) { 13039 accept(ASTVisitor visitor) {
13040 for (E element in elements) { 13040 for (E element in elements) {
13041 element.accept(visitor); 13041 element.accept(visitor);
13042 } 13042 }
13043 } 13043 }
13044 void add(E node) { 13044 void add(E node) {
13045 owner.becomeParentOf(node); 13045 owner.becomeParentOf(node);
13046 elements.add(node); 13046 elements.add(node);
13047 } 13047 }
13048 bool addAll(Collection<E> nodes) { 13048 bool addAll(Iterable<E> nodes) {
13049 if (nodes != null) { 13049 if (nodes != null) {
13050 for (E node in nodes) { 13050 for (E node in nodes) {
13051 add(node); 13051 add(node);
13052 } 13052 }
13053 return true; 13053 return true;
13054 } 13054 }
13055 return false; 13055 return false;
13056 } 13056 }
13057 /** 13057 /**
13058 * Return the first token included in this node's source range. 13058 * Return the first token included in this node's source range.
(...skipping 15 matching lines...) Expand all
13074 } 13074 }
13075 return elements[elements.length - 1].endToken; 13075 return elements[elements.length - 1].endToken;
13076 } 13076 }
13077 /** 13077 /**
13078 * Return the node that is the parent of each of the elements in the list. 13078 * Return the node that is the parent of each of the elements in the list.
13079 * @return the node that is the parent of each of the elements in the list 13079 * @return the node that is the parent of each of the elements in the list
13080 */ 13080 */
13081 ASTNode getOwner() { 13081 ASTNode getOwner() {
13082 return owner; 13082 return owner;
13083 } 13083 }
13084 } 13084 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698