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' |
+ ' int indexOf($TYPE element, [int startIndex = 0]) {\n' |
' return _Lists.indexOf(this, element, startIndex, this.length);\n' |
' }\n' |
'\n' |
- ' int lastIndexOf($TYPE element, int startIndex) {\n' |
- ' return _Lists.lastIndexOf(this, element, startIndex);\n' |
+ ' int lastIndexOf($TYPE element, [int fromIndex = null]) {\n' |
+ ' if (fromIndex === null) fromIndex = length - 1;\n' |
+ ' return _Lists.lastIndexOf(this, element, fromIndex);\n' |
' }\n' |
'\n' |
' int clear() {\n' |