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

Side by Side Diff: pkg/serialization/lib/src/serialization_rule.dart

Issue 12383073: Add List.insert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use insertBefore and add is-check. Created 7 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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of serialization; 5 part of serialization;
6 6
7 // TODO(alanknight): We should have an example and tests for subclassing 7 // TODO(alanknight): We should have an example and tests for subclassing
8 // serialization rule rather than using the hard-coded ClosureToMap rule. And 8 // serialization rule rather than using the hard-coded ClosureToMap rule. And
9 // possibly an abstract superclass that's designed to be subclassed that way. 9 // possibly an abstract superclass that's designed to be subclassed that way.
10 /** 10 /**
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 // These operations are all invalid 547 // These operations are all invalid
548 _throw() { 548 _throw() {
549 throw new UnsupportedError("Not modifiable"); 549 throw new UnsupportedError("Not modifiable");
550 } 550 }
551 operator []=(x, y) => _throw(); 551 operator []=(x, y) => _throw();
552 add(x) => _throw(); 552 add(x) => _throw();
553 addLast(x) => _throw(); 553 addLast(x) => _throw();
554 addAll(x) => _throw(); 554 addAll(x) => _throw();
555 sort([f]) => _throw(); 555 sort([f]) => _throw();
556 clear() => _throw(); 556 clear() => _throw();
557 insert(x, y) => _throw();
557 removeAt(x) => _throw(); 558 removeAt(x) => _throw();
558 remove(x) => _throw(); 559 remove(x) => _throw();
559 removeLast() => _throw(); 560 removeLast() => _throw();
560 removeAll(x) => _throw(); 561 removeAll(x) => _throw();
561 retainAll(x) => _throw(); 562 retainAll(x) => _throw();
562 removeMatching(x) => _throw(); 563 removeMatching(x) => _throw();
563 retainMatching(x) => _throw(); 564 retainMatching(x) => _throw();
564 getRange(x, y) => _throw(); 565 getRange(x, y) => _throw();
565 setRange(x, y, z, [a]) => _throw(); 566 setRange(x, y, z, [a]) => _throw();
566 removeRange(x, y) => _throw(); 567 removeRange(x, y) => _throw();
567 insertRange(x, y, [z]) => _throw(); 568 insertRange(x, y, [z]) => _throw();
568 get reversed => _throw(); 569 get reversed => _throw();
569 void set length(x) => _throw(); 570 void set length(x) => _throw();
570 } 571 }
OLDNEW
« no previous file with comments | « editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart ('k') | runtime/lib/array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698