Index: client/dom/scripts/dartgenerator.py |
=================================================================== |
--- client/dom/scripts/dartgenerator.py (revision 942) |
+++ client/dom/scripts/dartgenerator.py (working copy) |
@@ -1280,12 +1280,13 @@ |
' throw new UnsupportedOperationException("This object is immutable.");\n' |
' }\n' |
'\n' |
- ' int indexOf($TYPE element, int startIndex) {\n' |
- ' return _Lists.indexOf(this, element, startIndex, this.length);\n' |
+ ' int indexOf($TYPE element, [int start = 0]) {\n' |
+ ' return _Lists.indexOf(this, element, start, this.length);\n' |
' }\n' |
'\n' |
- ' int lastIndexOf($TYPE element, int startIndex) {\n' |
- ' return _Lists.lastIndexOf(this, element, startIndex);\n' |
+ ' int lastIndexOf($TYPE element, [int start = null]) {\n' |
+ ' if (start === null) start = length - 1;\n' |
+ ' return _Lists.lastIndexOf(this, element, start);\n' |
' }\n' |
'\n' |
' int clear() {\n' |