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

Side by Side Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 15850004: Verify that correct number of arguments was passed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/dom/scripts/generator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library dart.dom.indexed_db; 1 library dart.dom.indexed_db;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:html_common'; 5 import 'dart:html_common';
6 import 'dart:typed_data'; 6 import 'dart:typed_data';
7 import 'dart:_js_helper' show Creates, Returns, JSName, Null; 7 import 'dart:_js_helper' show Creates, Returns, JSName, Null;
8 import 'dart:_foreign_helper' show JS; 8 import 'dart:_foreign_helper' show JS;
9 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10 // for details. All rights reserved. Use of this source code is governed by a 10 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 @DocsEditable 904 @DocsEditable
905 Request $dom_count([key_OR_range]) native; 905 Request $dom_count([key_OR_range]) native;
906 906
907 @DomName('IDBObjectStore.createIndex') 907 @DomName('IDBObjectStore.createIndex')
908 @DocsEditable 908 @DocsEditable
909 Index $dom_createIndex(String name, keyPath, [Map options]) { 909 Index $dom_createIndex(String name, keyPath, [Map options]) {
910 if ((keyPath is List<String> || keyPath == null) && !?options) { 910 if ((keyPath is List<String> || keyPath == null) && !?options) {
911 List keyPath_1 = convertDartToNative_StringArray(keyPath); 911 List keyPath_1 = convertDartToNative_StringArray(keyPath);
912 return _$dom_createIndex_1(name, keyPath_1); 912 return _$dom_createIndex_1(name, keyPath_1);
913 } 913 }
914 if ((keyPath is List<String> || keyPath == null)) { 914 if ((keyPath is List<String> || keyPath == null) && ?options) {
915 List keyPath_2 = convertDartToNative_StringArray(keyPath); 915 List keyPath_2 = convertDartToNative_StringArray(keyPath);
916 var options_3 = convertDartToNative_Dictionary(options); 916 var options_3 = convertDartToNative_Dictionary(options);
917 return _$dom_createIndex_2(name, keyPath_2, options_3); 917 return _$dom_createIndex_2(name, keyPath_2, options_3);
918 } 918 }
919 if ((keyPath is String || keyPath == null) && !?options) { 919 if ((keyPath is String || keyPath == null) && !?options) {
920 return _$dom_createIndex_3(name, keyPath); 920 return _$dom_createIndex_3(name, keyPath);
921 } 921 }
922 if ((keyPath is String || keyPath == null)) { 922 if ((keyPath is String || keyPath == null) && ?options) {
923 var options_4 = convertDartToNative_Dictionary(options); 923 var options_4 = convertDartToNative_Dictionary(options);
924 return _$dom_createIndex_4(name, keyPath, options_4); 924 return _$dom_createIndex_4(name, keyPath, options_4);
925 } 925 }
926 throw new ArgumentError("Incorrect number or type of arguments"); 926 throw new ArgumentError("Incorrect number or type of arguments");
927 } 927 }
928 @JSName('createIndex') 928 @JSName('createIndex')
929 @DomName('IDBObjectStore.createIndex') 929 @DomName('IDBObjectStore.createIndex')
930 @DocsEditable 930 @DocsEditable
931 Index _$dom_createIndex_1(name, List keyPath) native; 931 Index _$dom_createIndex_1(name, List keyPath) native;
932 @JSName('createIndex') 932 @JSName('createIndex')
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1252 // for details. All rights reserved. Use of this source code is governed by a 1252 // for details. All rights reserved. Use of this source code is governed by a
1253 // BSD-style license that can be found in the LICENSE file. 1253 // BSD-style license that can be found in the LICENSE file.
1254 1254
1255 1255
1256 @DocsEditable 1256 @DocsEditable
1257 @DomName('IDBAny') 1257 @DomName('IDBAny')
1258 @deprecated // nonstandard 1258 @deprecated // nonstandard
1259 abstract class _IDBAny native "IDBAny" { 1259 abstract class _IDBAny native "IDBAny" {
1260 } 1260 }
OLDNEW
« no previous file with comments | « no previous file | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698