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

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

Issue 198453002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 1
2 /** 2 /**
3 * Instances of the class {@code NodeList} represent a list of AST nodes that ha ve a common parent. 3 * Instances of the class {@code NodeList} represent a list of AST nodes that ha ve a common parent.
4 */ 4 */
5 class NodeList<E extends AstNode> extends Object with ListMixin<E> { 5 class NodeList<E extends AstNode> extends Object with ListMixin<E> {
6 /** 6 /**
7 * Create an empty list with the given owner. This is a convenience method tha t allows the 7 * Create an empty list with the given owner. This is a convenience method tha t allows the
8 * compiler to determine the correct value of the type argument [E] without ne eding to 8 * compiler to determine the correct value of the type argument [E] without ne eding to
9 * explicitly specify it. 9 * explicitly specify it.
10 * 10 *
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 _elements.removeAt(index); 109 _elements.removeAt(index);
110 return removedNode; 110 return removedNode;
111 } 111 }
112 void operator[]=(int index, E node) { 112 void operator[]=(int index, E node) {
113 if (index < 0 || index >= _elements.length) { 113 if (index < 0 || index >= _elements.length) {
114 throw new RangeError("Index: ${index}, Size: ${_elements.length}"); 114 throw new RangeError("Index: ${index}, Size: ${_elements.length}");
115 } 115 }
116 owner.becomeParentOf(node); 116 owner.becomeParentOf(node);
117 _elements[index] = node; 117 _elements[index] = node;
118 } 118 }
119 void clear() {
120 _elements = <E> [];
121 }
119 int get length => _elements.length; 122 int get length => _elements.length;
120 void set length(int value) { 123 void set length(int value) {
121 throw new UnsupportedError("Cannot resize NodeList."); 124 throw new UnsupportedError("Cannot resize NodeList.");
122 } 125 }
123 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698