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

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

Issue 14976004: Remove more question marks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 22634d5a185d1199ae33d15c133bdafe3dd3909d..ee98234579ad00979b9b4a21919b86f7cbef5fdf 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -305,7 +305,7 @@ class Database extends EventTarget native "IDBDatabase" {
@DomName('IDBDatabase.createObjectStore')
@DocsEditable
ObjectStore $dom_createObjectStore(String name, [Map options]) {
- if (?options) {
+ if (options != null) {
var options_1 = convertDartToNative_Dictionary(options);
return _$dom_createObjectStore_1(name, options_1);
}
@@ -878,7 +878,7 @@ class ObjectStore native "IDBObjectStore" {
@Creates('Request')
@_annotation_Creates_IDBKey
Request $dom_add(/*any*/ value, [/*any*/ key]) {
- if (?key) {
+ if (key != null) {
var value_1 = convertDartToNative_SerializedScriptValue(value);
var key_2 = convertDartToNative_SerializedScriptValue(key);
return _$dom_add_1(value_1, key_2);
@@ -914,19 +914,19 @@ class ObjectStore native "IDBObjectStore" {
@DomName('IDBObjectStore.createIndex')
@DocsEditable
Index $dom_createIndex(String name, keyPath, [Map options]) {
- if ((keyPath is List<String> || keyPath == null) && !?options) {
+ if ((keyPath is List<String> || keyPath == null) && options == null) {
List keyPath_1 = convertDartToNative_StringArray(keyPath);
return _$dom_createIndex_1(name, keyPath_1);
}
- if ((keyPath is List<String> || keyPath == null) && ?options) {
+ if (options != null && (keyPath is List<String> || keyPath == null)) {
List keyPath_2 = convertDartToNative_StringArray(keyPath);
var options_3 = convertDartToNative_Dictionary(options);
return _$dom_createIndex_2(name, keyPath_2, options_3);
}
- if ((keyPath is String || keyPath == null) && !?options) {
+ if ((keyPath is String || keyPath == null) && options == null) {
return _$dom_createIndex_3(name, keyPath);
}
- if ((keyPath is String || keyPath == null) && ?options) {
+ if (options != null && (keyPath is String || keyPath == null)) {
var options_4 = convertDartToNative_Dictionary(options);
return _$dom_createIndex_4(name, keyPath, options_4);
}
@@ -984,7 +984,7 @@ class ObjectStore native "IDBObjectStore" {
@Creates('Request')
@_annotation_Creates_IDBKey
Request $dom_put(/*any*/ value, [/*any*/ key]) {
- if (?key) {
+ if (key != null) {
var value_1 = convertDartToNative_SerializedScriptValue(value);
var key_2 = convertDartToNative_SerializedScriptValue(key);
return _$dom_put_1(value_1, key_2);
« 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