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

Side by Side Diff: client/dom/generated/src/wrapping/_NamedNodeMapWrappingImplementation.dart

Issue 8424012: Add optional arguments to our indexOf/lastIndexOf methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class _NamedNodeMapWrappingImplementation extends DOMWrapperBase implements Name dNodeMap { 7 class _NamedNodeMapWrappingImplementation extends DOMWrapperBase implements Name dNodeMap {
8 _NamedNodeMapWrappingImplementation() : super() {} 8 _NamedNodeMapWrappingImplementation() : super() {}
9 9
10 static create__NamedNodeMapWrappingImplementation() native { 10 static create__NamedNodeMapWrappingImplementation() native {
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 void sort(int compare(Node a, Node b)) { 37 void sort(int compare(Node a, Node b)) {
38 throw new UnsupportedOperationException("Cannot sort immutable List."); 38 throw new UnsupportedOperationException("Cannot sort immutable List.");
39 } 39 }
40 40
41 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { 41 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
42 throw new UnsupportedOperationException("This object is immutable."); 42 throw new UnsupportedOperationException("This object is immutable.");
43 } 43 }
44 44
45 int indexOf(Node element, int startIndex) { 45 int indexOf(Node element, [int start = 0]) {
46 return _Lists.indexOf(this, element, startIndex, this.length); 46 return _Lists.indexOf(this, element, start, this.length);
47 } 47 }
48 48
49 int lastIndexOf(Node element, int startIndex) { 49 int lastIndexOf(Node element, [int start = null]) {
50 return _Lists.lastIndexOf(this, element, startIndex); 50 if (start === null) start = length - 1;
51 return _Lists.lastIndexOf(this, element, start);
51 } 52 }
52 53
53 int clear() { 54 int clear() {
54 throw new UnsupportedOperationException("Cannot clear immutable List."); 55 throw new UnsupportedOperationException("Cannot clear immutable List.");
55 } 56 }
56 57
57 Node removeLast() { 58 Node removeLast() {
58 throw new UnsupportedOperationException("Cannot removeLast on immutable List ."); 59 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
59 } 60 }
60 61
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 133 }
133 static Node _setNamedItem(receiver, node) native; 134 static Node _setNamedItem(receiver, node) native;
134 135
135 Node setNamedItemNS(Node node) { 136 Node setNamedItemNS(Node node) {
136 return _setNamedItemNS(this, node); 137 return _setNamedItemNS(this, node);
137 } 138 }
138 static Node _setNamedItemNS(receiver, node) native; 139 static Node _setNamedItemNS(receiver, node) native;
139 140
140 String get typeName() { return "NamedNodeMap"; } 141 String get typeName() { return "NamedNodeMap"; }
141 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698