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

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

Issue 14308011: New Analysis Engine snapshot. (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 library java.core; 1 library java.core;
2 2
3 import "dart:math" as math; 3 import "dart:math" as math;
4 import "dart:uri"; 4 import "dart:uri";
5 import "dart:collection" show ListBase; 5 import "dart:collection" show ListBase;
6 6
7 class JavaSystem { 7 class JavaSystem {
8 static int currentTimeMillis() { 8 static int currentTimeMillis() {
9 return (new DateTime.now()).millisecondsSinceEpoch; 9 return (new DateTime.now()).millisecondsSinceEpoch;
10 } 10 }
(...skipping 24 matching lines...) Expand all
35 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") { 35 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") {
36 return true; 36 return true;
37 } 37 }
38 if (oTypeName.startsWith("List") && tTypeName == "List") { 38 if (oTypeName.startsWith("List") && tTypeName == "List") {
39 return true; 39 return true;
40 } 40 }
41 // Dart Analysis Engine specific 41 // Dart Analysis Engine specific
42 if (oTypeName == "${tTypeName}Impl") { 42 if (oTypeName == "${tTypeName}Impl") {
43 return true; 43 return true;
44 } 44 }
45 if (tTypeName == "MethodElement") {
46 if (oTypeName == "MethodMember") {
47 return true;
48 }
49 }
45 if (tTypeName == "ExecutableElement") { 50 if (tTypeName == "ExecutableElement") {
46 if (oTypeName == "MethodElementImpl" || oTypeName == "FunctionElementImpl") { 51 if (oTypeName == "MethodElementImpl" || oTypeName == "FunctionElementImpl") {
47 return true; 52 return true;
48 } 53 }
49 } 54 }
50 // no 55 // no
51 return false; 56 return false;
52 } 57 }
53 58
54 class JavaArrays { 59 class JavaArrays {
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 289 }
285 290
286 void addLast(E value) { 291 void addLast(E value) {
287 elements.add(value); 292 elements.add(value);
288 } 293 }
289 294
290 void addAll(Iterable<E> iterable) { 295 void addAll(Iterable<E> iterable) {
291 elements.addAll(iterable); 296 elements.addAll(iterable);
292 } 297 }
293 298
299 void setAll(int index, Iterable<E> iterable) {
300 elements.setAll(iterable);
301 }
302
294 void sort([int compare(E a, E b)]) { 303 void sort([int compare(E a, E b)]) {
295 elements.sort(compare); 304 elements.sort(compare);
296 } 305 }
297 306
298 int indexOf(E element, [int start = 0]) { 307 int indexOf(E element, [int start = 0]) {
299 return elements.indexOf(element, start); 308 return elements.indexOf(element, start);
300 } 309 }
301 310
302 void insert(int index, E element) { 311 void insert(int index, E element) {
303 elements.insert(index, element); 312 elements.insert(index, element);
304 } 313 }
305 314
315 void insertAll(int index, Iterable<E> iterable) {
316 elements.insertAll(index, iterable);
317 }
318
306 int lastIndexOf(E element, [int start]) { 319 int lastIndexOf(E element, [int start]) {
307 return elements.lastIndexOf(element, start); 320 return elements.lastIndexOf(element, start);
308 } 321 }
309 322
310 void clear() { 323 void clear() {
311 elements.clear(); 324 elements.clear();
312 } 325 }
313 326
314 bool remove(Object element) { 327 bool remove(Object element) {
315 return elements.remove(element); 328 return elements.remove(element);
316 } 329 }
317 330
318 E removeAt(int index) { 331 E removeAt(int index) {
319 return elements.removeAt(index); 332 return elements.removeAt(index);
320 } 333 }
321 334
322 E removeLast() { 335 E removeLast() {
323 return elements.removeLast(); 336 return elements.removeLast();
324 } 337 }
325 338
326 Iterable<E> get reversed => elements.reversed; 339 Iterable<E> get reversed => elements.reversed;
327 340
328 List<E> sublist(int start, [int end]) => elements.sublist(start, end); 341 List<E> sublist(int start, [int end]) => elements.sublist(start, end);
329 342
330 List<E> getRange(int start, int length) => sublist(start, start + length); 343 List<E> getRange(int start, int length) => sublist(start, start + length);
331 344
332 void setRange(int start, int length, List<E> from, [int startFrom]) { 345 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]) {
333 elements.setRange(start, length, from, startFrom); 346 elements.setRange(start, end, iterable, skipCount);
334 } 347 }
335 348
336 void removeRange(int start, int length) { 349 void removeRange(int start, int end) {
337 elements.removeRange(start, length); 350 elements.removeRange(start, end);
338 } 351 }
339 352
340 void insertRange(int start, int length, [E fill]) { 353 void replaceRange(int start, int end, Iterable<E> iterable) {
341 elements.insertRange(start, length, fill); 354 elements.replaceRange(start, end, iterable);
355 }
356
357 void fillRange(int start, int end, [E fillValue]) {
358 elements.fillRange(start, end, fillValue);
342 } 359 }
343 360
344 Map<int, E> asMap() { 361 Map<int, E> asMap() {
345 return elements.asMap(); 362 return elements.asMap();
346 } 363 }
347 } 364 }
348 365
349 class JavaIterator<E> { 366 class JavaIterator<E> {
350 Iterable<E> _iterable; 367 Iterable<E> _iterable;
351 List<E> _elements = new List<E>(); 368 List<E> _elements = new List<E>();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 } 457 }
441 } else if (sb.length > newLength) { 458 } else if (sb.length > newLength) {
442 var s = sb.toString().substring(0, newLength); 459 var s = sb.toString().substring(0, newLength);
443 sb = new StringBuffer(s); 460 sb = new StringBuffer(s);
444 } 461 }
445 } 462 }
446 void clear() { 463 void clear() {
447 sb = new StringBuffer(); 464 sb = new StringBuffer();
448 } 465 }
449 } 466 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698