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

Unified Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.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/html/dart2js/html_dart2js.dart ('k') | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
index 6d87f5a0415b05afbfd3d824b3535b994f7d1330..45d656513f2ebbccb9a61cc6772c568d9e1edc95 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -345,7 +345,7 @@ class Index native "*IDBIndex" {
if (!?key_OR_range) {
return _count_1();
}
- if ((?key_OR_range && (key_OR_range is KeyRange || key_OR_range == null))) {
+ if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _count_2(key_OR_range);
}
if (?key_OR_range) {
@@ -363,7 +363,7 @@ class Index native "*IDBIndex" {
/// @domName IDBIndex.get; @docsEditable true
Request get(key) {
- if ((?key && (key is KeyRange || key == null))) {
+ if ((key is KeyRange || key == null)) {
return _get_1(key);
}
if (?key) {
@@ -381,7 +381,7 @@ class Index native "*IDBIndex" {
/// @domName IDBIndex.getKey; @docsEditable true
Request getKey(key) {
- if ((?key && (key is KeyRange || key == null))) {
+ if ((key is KeyRange || key == null)) {
return _getKey_1(key);
}
if (?key) {
@@ -403,11 +403,11 @@ class Index native "*IDBIndex" {
!?direction) {
return _openCursor_1();
}
- if ((?key_OR_range && (key_OR_range is KeyRange || key_OR_range == null)) &&
+ if ((key_OR_range is KeyRange || key_OR_range == null) &&
!?direction) {
return _openCursor_2(key_OR_range);
}
- if ((?key_OR_range && (key_OR_range is KeyRange || key_OR_range == null))) {
+ if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _openCursor_3(key_OR_range, direction);
}
if (?key_OR_range &&
@@ -443,11 +443,11 @@ class Index native "*IDBIndex" {
!?direction) {
return _openKeyCursor_1();
}
- if ((?key_OR_range && (key_OR_range is KeyRange || key_OR_range == null)) &&
+ if ((key_OR_range is KeyRange || key_OR_range == null) &&
!?direction) {
return _openKeyCursor_2(key_OR_range);
}
- if ((?key_OR_range && (key_OR_range is KeyRange || key_OR_range == null))) {
+ if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _openKeyCursor_3(key_OR_range, direction);
}
if (?key_OR_range &&
@@ -644,7 +644,7 @@ class ObjectStore native "*IDBObjectStore" {
if (!?key_OR_range) {
return _count_1();
}
- if ((?key_OR_range && (key_OR_range is KeyRange || key_OR_range == null))) {
+ if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _count_2(key_OR_range);
}
if (?key_OR_range) {
@@ -662,19 +662,19 @@ class ObjectStore native "*IDBObjectStore" {
/// @domName IDBObjectStore.createIndex; @docsEditable true
Index createIndex(String name, keyPath, [Map options]) {
- if ((?keyPath && (keyPath is List<String> || keyPath == null)) &&
+ if ((keyPath is List<String> || keyPath == null) &&
!?options) {
return _createIndex_1(name, keyPath);
}
- if ((?keyPath && (keyPath is List<String> || keyPath == null))) {
+ if ((keyPath is List<String> || keyPath == null)) {
var options_1 = convertDartToNative_Dictionary(options);
return _createIndex_2(name, keyPath, options_1);
}
- if ((?keyPath && (keyPath is String || keyPath == null)) &&
+ if ((keyPath is String || keyPath == null) &&
!?options) {
return _createIndex_3(name, keyPath);
}
- if ((?keyPath && (keyPath is String || keyPath == null))) {
+ if ((keyPath is String || keyPath == null)) {
var options_2 = convertDartToNative_Dictionary(options);
return _createIndex_4(name, keyPath, options_2);
}
@@ -691,7 +691,7 @@ class ObjectStore native "*IDBObjectStore" {
/// @domName IDBObjectStore.delete; @docsEditable true
Request delete(key_OR_keyRange) {
- if ((?key_OR_keyRange && (key_OR_keyRange is KeyRange || key_OR_keyRange == null))) {
+ if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) {
return _delete_1(key_OR_keyRange);
}
if (?key_OR_keyRange) {
@@ -710,7 +710,7 @@ class ObjectStore native "*IDBObjectStore" {
/// @domName IDBObjectStore.getObject; @docsEditable true
Request getObject(key) {
- if ((?key && (key is KeyRange || key == null))) {
+ if ((key is KeyRange || key == null)) {
return _getObject_1(key);
}
if (?key) {
@@ -735,11 +735,11 @@ class ObjectStore native "*IDBObjectStore" {
!?direction) {
return _openCursor_1();
}
- if ((?key_OR_range && (key_OR_range is KeyRange || key_OR_range == null)) &&
+ if ((key_OR_range is KeyRange || key_OR_range == null) &&
!?direction) {
return _openCursor_2(key_OR_range);
}
- if ((?key_OR_range && (key_OR_range is KeyRange || key_OR_range == null))) {
+ if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _openCursor_3(key_OR_range, direction);
}
if (?key_OR_range &&
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698