| OLD | NEW |
| 1 /** | 1 /** |
| 2 * An API for storing data in the browser that can be queried with SQL. | 2 * An API for storing data in the browser that can be queried with SQL. |
| 3 * | 3 * |
| 4 * **Caution:** this specification is no longer actively maintained by the Web | 4 * **Caution:** this specification is no longer actively maintained by the Web |
| 5 * Applications Working Group and may be removed at any time. | 5 * Applications Working Group and may be removed at any time. |
| 6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase
/) | 6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase
/) |
| 7 * for more information. | 7 * for more information. |
| 8 * | 8 * |
| 9 * The [dart:indexed_db] APIs is a recommended alternatives. | 9 * The [dart:indexed_db] APIs is a recommended alternatives. |
| 10 */ | 10 */ |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 Iterable<Map> takeWhile(bool test(Map value)) { | 299 Iterable<Map> takeWhile(bool test(Map value)) { |
| 300 return IterableMixinWorkaround.takeWhile(this, test); | 300 return IterableMixinWorkaround.takeWhile(this, test); |
| 301 } | 301 } |
| 302 | 302 |
| 303 Iterable<Map> skip(int n) => IterableMixinWorkaround.skipList(this, n); | 303 Iterable<Map> skip(int n) => IterableMixinWorkaround.skipList(this, n); |
| 304 | 304 |
| 305 Iterable<Map> skipWhile(bool test(Map value)) { | 305 Iterable<Map> skipWhile(bool test(Map value)) { |
| 306 return IterableMixinWorkaround.skipWhile(this, test); | 306 return IterableMixinWorkaround.skipWhile(this, test); |
| 307 } | 307 } |
| 308 | 308 |
| 309 Map firstMatching(bool test(Map value), { Map orElse() }) { | 309 Map firstWhere(bool test(Map value), { Map orElse() }) { |
| 310 return IterableMixinWorkaround.firstMatching(this, test, orElse); | 310 return IterableMixinWorkaround.firstWhere(this, test, orElse); |
| 311 } | 311 } |
| 312 | 312 |
| 313 Map lastMatching(bool test(Map value), {Map orElse()}) { | 313 Map lastWhere(bool test(Map value), {Map orElse()}) { |
| 314 return IterableMixinWorkaround.lastMatchingInList(this, test, orElse); | 314 return IterableMixinWorkaround.lastWhereList(this, test, orElse); |
| 315 } | 315 } |
| 316 | 316 |
| 317 Map singleMatching(bool test(Map value)) { | 317 Map singleWhere(bool test(Map value)) { |
| 318 return IterableMixinWorkaround.singleMatching(this, test); | 318 return IterableMixinWorkaround.singleWhere(this, test); |
| 319 } | 319 } |
| 320 | 320 |
| 321 Map elementAt(int index) { | 321 Map elementAt(int index) { |
| 322 return this[index]; | 322 return this[index]; |
| 323 } | 323 } |
| 324 | 324 |
| 325 // From Collection<Map>: | 325 // From Collection<Map>: |
| 326 | 326 |
| 327 void add(Map value) { | 327 void add(Map value) { |
| 328 throw new UnsupportedError("Cannot add to immutable List."); | 328 throw new UnsupportedError("Cannot add to immutable List."); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 } | 396 } |
| 397 | 397 |
| 398 void removeAll(Iterable elements) { | 398 void removeAll(Iterable elements) { |
| 399 throw new UnsupportedError("Cannot remove from immutable List."); | 399 throw new UnsupportedError("Cannot remove from immutable List."); |
| 400 } | 400 } |
| 401 | 401 |
| 402 void retainAll(Iterable elements) { | 402 void retainAll(Iterable elements) { |
| 403 throw new UnsupportedError("Cannot remove from immutable List."); | 403 throw new UnsupportedError("Cannot remove from immutable List."); |
| 404 } | 404 } |
| 405 | 405 |
| 406 void removeMatching(bool test(Map element)) { | 406 void removeWhere(bool test(Map element)) { |
| 407 throw new UnsupportedError("Cannot remove from immutable List."); | 407 throw new UnsupportedError("Cannot remove from immutable List."); |
| 408 } | 408 } |
| 409 | 409 |
| 410 void retainMatching(bool test(Map element)) { | 410 void retainWhere(bool test(Map element)) { |
| 411 throw new UnsupportedError("Cannot remove from immutable List."); | 411 throw new UnsupportedError("Cannot remove from immutable List."); |
| 412 } | 412 } |
| 413 | 413 |
| 414 void setRange(int start, int rangeLength, List<Map> from, [int startFrom]) { | 414 void setRange(int start, int rangeLength, List<Map> from, [int startFrom]) { |
| 415 throw new UnsupportedError("Cannot setRange on immutable List."); | 415 throw new UnsupportedError("Cannot setRange on immutable List."); |
| 416 } | 416 } |
| 417 | 417 |
| 418 void removeRange(int start, int rangeLength) { | 418 void removeRange(int start, int rangeLength) { |
| 419 throw new UnsupportedError("Cannot removeRange on immutable List."); | 419 throw new UnsupportedError("Cannot removeRange on immutable List."); |
| 420 } | 420 } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 @DomName('SQLTransactionSync') | 468 @DomName('SQLTransactionSync') |
| 469 @SupportedBrowser(SupportedBrowser.CHROME) | 469 @SupportedBrowser(SupportedBrowser.CHROME) |
| 470 @SupportedBrowser(SupportedBrowser.SAFARI) | 470 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 471 @Experimental | 471 @Experimental |
| 472 class SqlTransactionSync native "*SQLTransactionSync" { | 472 class SqlTransactionSync native "*SQLTransactionSync" { |
| 473 | 473 |
| 474 @DomName('SQLTransactionSync.executeSql') | 474 @DomName('SQLTransactionSync.executeSql') |
| 475 @DocsEditable | 475 @DocsEditable |
| 476 SqlResultSet executeSql(String sqlStatement, List arguments) native; | 476 SqlResultSet executeSql(String sqlStatement, List arguments) native; |
| 477 } | 477 } |
| OLD | NEW |