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

Unified Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 11688005: Start unification of overload dispatcher generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
index 83351f18d20631dbfab5088fb06c2e0bee10653d..a5594bfe733c91468903d787f55d3e2d0007fe0b 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -273,7 +273,9 @@ class Index extends NativeFieldWrapperClass1 {
if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _count_2(key_OR_range);
}
- return _count_3(key_OR_range);
+ if (?key_OR_range) {
+ return _count_3(key_OR_range);
+ }
throw "Incorrect number or type of arguments";
}
@@ -293,7 +295,9 @@ class Index extends NativeFieldWrapperClass1 {
if ((key is KeyRange || key == null)) {
return _get_1(key);
}
- return _get_2(key);
+ if (?key) {
+ return _get_2(key);
+ }
throw "Incorrect number or type of arguments";
}
@@ -309,7 +313,9 @@ class Index extends NativeFieldWrapperClass1 {
if ((key is KeyRange || key == null)) {
return _getKey_1(key);
}
- return _getKey_2(key);
+ if (?key) {
+ return _getKey_2(key);
+ }
throw "Incorrect number or type of arguments";
}
@@ -331,10 +337,10 @@ class Index extends NativeFieldWrapperClass1 {
if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is String || direction == null)) {
return _openCursor_3(key_OR_range, direction);
}
- if (!?direction) {
+ if (?key_OR_range && !?direction) {
return _openCursor_4(key_OR_range);
}
- if ((direction is String || direction == null)) {
+ if (?key_OR_range && (direction is String || direction == null)) {
return _openCursor_5(key_OR_range, direction);
}
throw "Incorrect number or type of arguments";
@@ -370,10 +376,10 @@ class Index extends NativeFieldWrapperClass1 {
if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is String || direction == null)) {
return _openKeyCursor_3(key_OR_range, direction);
}
- if (!?direction) {
+ if (?key_OR_range && !?direction) {
return _openKeyCursor_4(key_OR_range);
}
- if ((direction is String || direction == null)) {
+ if (?key_OR_range && (direction is String || direction == null)) {
return _openKeyCursor_5(key_OR_range, direction);
}
throw "Incorrect number or type of arguments";
@@ -577,7 +583,9 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _count_2(key_OR_range);
}
- return _count_3(key_OR_range);
+ if (?key_OR_range) {
+ return _count_3(key_OR_range);
+ }
throw "Incorrect number or type of arguments";
}
@@ -615,7 +623,9 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) {
return _delete_1(key_OR_keyRange);
}
- return _delete_2(key_OR_keyRange);
+ if (?key_OR_keyRange) {
+ return _delete_2(key_OR_keyRange);
+ }
throw "Incorrect number or type of arguments";
}
@@ -635,7 +645,9 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if ((key is KeyRange || key == null)) {
return _get_1(key);
}
- return _get_2(key);
+ if (?key) {
+ return _get_2(key);
+ }
throw "Incorrect number or type of arguments";
}
@@ -661,10 +673,10 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is String || direction == null)) {
return _openCursor_3(key_OR_range, direction);
}
- if (!?direction) {
+ if (?key_OR_range && !?direction) {
return _openCursor_4(key_OR_range);
}
- if ((direction is String || direction == null)) {
+ if (?key_OR_range && (direction is String || direction == null)) {
return _openCursor_5(key_OR_range, direction);
}
throw "Incorrect number or type of arguments";
« sdk/lib/html/scripts/systemhtml.py ('K') | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698