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

Unified Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 11896038: Some more refactorings of overload dispatcher generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months 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/dartium/html_dartium.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 5a60e3188659e98cd760d1558672a5a01e3db2b7..cec05b713b0ffec030c34e9457e4d8072128f7b2 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -488,19 +488,16 @@ class Index native "*IDBIndex" {
Request _getKey_2(key) native;
Request openCursor([key_OR_range, String direction]) {
- if (!?key_OR_range &&
- !?direction) {
+ if (!?key_OR_range && !?direction) {
return _openCursor_1();
}
- if ((key_OR_range is KeyRange || key_OR_range == null) &&
- !?direction) {
+ if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) {
return _openCursor_2(key_OR_range);
}
if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _openCursor_3(key_OR_range, direction);
}
- if (?key_OR_range &&
- !?direction) {
+ if (?key_OR_range && !?direction) {
var key_1 = _convertDartToNative_IDBKey(key_OR_range);
return _openCursor_4(key_1);
}
@@ -547,19 +544,16 @@ class Index native "*IDBIndex" {
Request _openCursor_5(key, direction) native;
Request openKeyCursor([key_OR_range, String direction]) {
- if (!?key_OR_range &&
- !?direction) {
+ if (!?key_OR_range && !?direction) {
return _openKeyCursor_1();
}
- if ((key_OR_range is KeyRange || key_OR_range == null) &&
- !?direction) {
+ if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) {
return _openKeyCursor_2(key_OR_range);
}
if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _openKeyCursor_3(key_OR_range, direction);
}
- if (?key_OR_range &&
- !?direction) {
+ if (?key_OR_range && !?direction) {
var key_1 = _convertDartToNative_IDBKey(key_OR_range);
return _openKeyCursor_4(key_1);
}
@@ -818,16 +812,14 @@ class ObjectStore native "*IDBObjectStore" {
Request _count_3(key) native;
Index createIndex(String name, keyPath, [Map options]) {
- if ((keyPath is List<String> || keyPath == null) &&
- !?options) {
+ if ((keyPath is List<String> || keyPath == null) && !?options) {
return _createIndex_1(name, keyPath);
}
if ((keyPath is List<String> || keyPath == null)) {
var options_1 = convertDartToNative_Dictionary(options);
return _createIndex_2(name, keyPath, options_1);
}
- if ((keyPath is String || keyPath == null) &&
- !?options) {
+ if ((keyPath is String || keyPath == null) && !?options) {
return _createIndex_3(name, keyPath);
}
if ((keyPath is String || keyPath == null)) {
@@ -906,19 +898,16 @@ class ObjectStore native "*IDBObjectStore" {
Index index(String name) native;
Request openCursor([key_OR_range, String direction]) {
- if (!?key_OR_range &&
- !?direction) {
+ if (!?key_OR_range && !?direction) {
return _openCursor_1();
}
- if ((key_OR_range is KeyRange || key_OR_range == null) &&
- !?direction) {
+ if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) {
return _openCursor_2(key_OR_range);
}
if ((key_OR_range is KeyRange || key_OR_range == null)) {
return _openCursor_3(key_OR_range, direction);
}
- if (?key_OR_range &&
- !?direction) {
+ if (?key_OR_range && !?direction) {
var key_1 = _convertDartToNative_IDBKey(key_OR_range);
return _openCursor_4(key_1);
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.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