| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 Map get single { | 353 Map get single { |
| 354 if (length == 1) return this[0]; | 354 if (length == 1) return this[0]; |
| 355 if (length == 0) throw new StateError("No elements"); | 355 if (length == 0) throw new StateError("No elements"); |
| 356 throw new StateError("More than one element"); | 356 throw new StateError("More than one element"); |
| 357 } | 357 } |
| 358 | 358 |
| 359 void insert(int index, Map element) { | 359 void insert(int index, Map element) { |
| 360 throw new UnsupportedError("Cannot add to immutable List."); | 360 throw new UnsupportedError("Cannot add to immutable List."); |
| 361 } | 361 } |
| 362 | 362 |
| 363 void insertAll(int index, Iterable<Map> iterable) { |
| 364 throw new UnsupportedError("Cannot add to immutable List."); |
| 365 } |
| 366 |
| 367 void setAll(int index, Iterable<Map> iterable) { |
| 368 throw new UnsupportedError("Cannot modify an immutable List."); |
| 369 } |
| 370 |
| 363 Map removeAt(int pos) { | 371 Map removeAt(int pos) { |
| 364 throw new UnsupportedError("Cannot remove from immutable List."); | 372 throw new UnsupportedError("Cannot remove from immutable List."); |
| 365 } | 373 } |
| 366 | 374 |
| 367 Map removeLast() { | 375 Map removeLast() { |
| 368 throw new UnsupportedError("Cannot remove from immutable List."); | 376 throw new UnsupportedError("Cannot remove from immutable List."); |
| 369 } | 377 } |
| 370 | 378 |
| 371 void remove(Object object) { | 379 void remove(Object object) { |
| 372 throw new UnsupportedError("Cannot remove from immutable List."); | 380 throw new UnsupportedError("Cannot remove from immutable List."); |
| 373 } | 381 } |
| 374 | 382 |
| 375 void removeWhere(bool test(Map element)) { | 383 void removeWhere(bool test(Map element)) { |
| 376 throw new UnsupportedError("Cannot remove from immutable List."); | 384 throw new UnsupportedError("Cannot remove from immutable List."); |
| 377 } | 385 } |
| 378 | 386 |
| 379 void retainWhere(bool test(Map element)) { | 387 void retainWhere(bool test(Map element)) { |
| 380 throw new UnsupportedError("Cannot remove from immutable List."); | 388 throw new UnsupportedError("Cannot remove from immutable List."); |
| 381 } | 389 } |
| 382 | 390 |
| 383 void setRange(int start, int end, Iterable<Map> iterable, [int skipCount]) { | 391 void setRange(int start, int end, Iterable<Map> iterable, [int skipCount]) { |
| 384 throw new UnsupportedError("Cannot setRange on immutable List."); | 392 throw new UnsupportedError("Cannot setRange on immutable List."); |
| 385 } | 393 } |
| 386 | 394 |
| 387 void removeRange(int start, int end) { | 395 void removeRange(int start, int end) { |
| 388 throw new UnsupportedError("Cannot removeRange on immutable List."); | 396 throw new UnsupportedError("Cannot removeRange on immutable List."); |
| 389 } | 397 } |
| 390 | 398 |
| 399 void replaceRange(int start, int end, Iterable<Map> iterable) { |
| 400 throw new UnsupportedError("Cannot modify an immutable List."); |
| 401 } |
| 402 |
| 403 void fillRange(int start, int end, [Map fillValue]) { |
| 404 throw new UnsupportedError("Cannot modify an immutable List."); |
| 405 } |
| 406 |
| 391 Iterable<Map> getRange(int start, int end) => | 407 Iterable<Map> getRange(int start, int end) => |
| 392 IterableMixinWorkaround.getRangeList(this, start, end); | 408 IterableMixinWorkaround.getRangeList(this, start, end); |
| 393 | 409 |
| 394 List<Map> sublist(int start, [int end]) { | 410 List<Map> sublist(int start, [int end]) { |
| 395 if (end == null) end = length; | 411 if (end == null) end = length; |
| 396 return Lists.getRange(this, start, end, <Map>[]); | 412 return Lists.getRange(this, start, end, <Map>[]); |
| 397 } | 413 } |
| 398 | 414 |
| 399 Map<int, Map> asMap() => | 415 Map<int, Map> asMap() => |
| 400 IterableMixinWorkaround.asMapList(this); | 416 IterableMixinWorkaround.asMapList(this); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 | 474 |
| 459 @DocsEditable | 475 @DocsEditable |
| 460 @DomName('SQLTransactionSync') | 476 @DomName('SQLTransactionSync') |
| 461 @SupportedBrowser(SupportedBrowser.CHROME) | 477 @SupportedBrowser(SupportedBrowser.CHROME) |
| 462 @SupportedBrowser(SupportedBrowser.SAFARI) | 478 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 463 @Experimental | 479 @Experimental |
| 464 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { | 480 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { |
| 465 _SQLTransactionSync.internal(); | 481 _SQLTransactionSync.internal(); |
| 466 | 482 |
| 467 } | 483 } |
| OLD | NEW |