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

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
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 249ed0694f8bb88956f561abe3c9dc75669bf97d..d5d6415fa44fc901fb2a2dda4dc126dce3be7c4b 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -282,7 +282,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";
}
@@ -302,7 +304,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";
}
@@ -318,7 +322,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";
}
@@ -340,10 +346,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";
@@ -379,10 +385,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";
@@ -586,7 +592,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";
}
@@ -624,7 +632,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";
}
@@ -644,7 +654,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";
}
@@ -670,10 +682,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";
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698