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

Unified Diff: pkg/dev_compiler/tool/input_sdk/lib/web_sql/dart2js/web_sql_dart2js.dart

Issue 2752163002: Format all dart dev compiler files (Closed)
Patch Set: Created 3 years, 9 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
Index: pkg/dev_compiler/tool/input_sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/lib/web_sql/dart2js/web_sql_dart2js.dart b/pkg/dev_compiler/tool/input_sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
index 433459d49090956e3a8ba375ba2a08beac550182..911c3c9c942d206d3cc459154e52ea35b002ceec 100644
--- a/pkg/dev_compiler/tool/input_sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
+++ b/pkg/dev_compiler/tool/input_sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
@@ -22,38 +22,34 @@ import 'dart:_interceptors' show Interceptor;
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:audio library.
-
-
-
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code.
-
@DomName('SQLStatementCallback')
// http://www.w3.org/TR/webdatabase/#sqlstatementcallback
@Experimental() // deprecated
-typedef void SqlStatementCallback(SqlTransaction transaction, SqlResultSet resultSet);
+typedef void SqlStatementCallback(
+ SqlTransaction transaction, SqlResultSet resultSet);
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code.
-
@DomName('SQLStatementErrorCallback')
// http://www.w3.org/TR/webdatabase/#sqlstatementerrorcallback
@Experimental() // deprecated
-typedef void SqlStatementErrorCallback(SqlTransaction transaction, SqlError error);
+typedef void SqlStatementErrorCallback(
+ SqlTransaction transaction, SqlError error);
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code.
-
@DomName('SQLTransactionCallback')
// http://www.w3.org/TR/webdatabase/#sqltransactioncallback
@Experimental() // deprecated
@@ -64,7 +60,6 @@ typedef void SqlTransactionCallback(SqlTransaction transaction);
// WARNING: Do not edit - generated code.
-
@DomName('SQLTransactionErrorCallback')
// http://www.w3.org/TR/webdatabase/#sqltransactionerrorcallback
@Experimental() // deprecated
@@ -73,7 +68,6 @@ typedef void SqlTransactionErrorCallback(SqlError error);
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Database')
@SupportedBrowser(SupportedBrowser.CHROME)
@@ -84,7 +78,9 @@ typedef void SqlTransactionErrorCallback(SqlError error);
@Native("Database")
class SqlDatabase extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
+ factory SqlDatabase._() {
+ throw new UnsupportedError("Not supported");
+ }
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.openDatabase)');
@@ -109,21 +105,27 @@ class SqlDatabase extends Interceptor {
*/
@DomName('Database.changeVersion')
@DocsEditable()
- void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallback callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native;
+ void changeVersion(String oldVersion, String newVersion,
+ [SqlTransactionCallback callback,
+ SqlTransactionErrorCallback errorCallback,
+ VoidCallback successCallback]) native ;
@DomName('Database.readTransaction')
@DocsEditable()
- void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native;
+ void readTransaction(SqlTransactionCallback callback,
+ [SqlTransactionErrorCallback errorCallback,
+ VoidCallback successCallback]) native ;
@DomName('Database.transaction')
@DocsEditable()
- void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native;
+ void transaction(SqlTransactionCallback callback,
+ [SqlTransactionErrorCallback errorCallback,
+ VoidCallback successCallback]) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('SQLError')
// http://www.w3.org/TR/webdatabase/#sqlerror
@@ -131,7 +133,9 @@ class SqlDatabase extends Interceptor {
@Native("SQLError")
class SqlError extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SqlError._() { throw new UnsupportedError("Not supported"); }
+ factory SqlError._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('SQLError.CONSTRAINT_ERR')
@DocsEditable()
@@ -177,7 +181,6 @@ class SqlError extends Interceptor {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('SQLResultSet')
// http://www.w3.org/TR/webdatabase/#sqlresultset
@@ -185,7 +188,9 @@ class SqlError extends Interceptor {
@Native("SQLResultSet")
class SqlResultSet extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
+ factory SqlResultSet._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('SQLResultSet.insertId')
@DocsEditable()
@@ -203,33 +208,35 @@ class SqlResultSet extends Interceptor {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('SQLResultSetRowList')
// http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
@Experimental() // deprecated
@Native("SQLResultSetRowList")
-class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> {
+class SqlResultSetRowList extends Interceptor
+ with ListMixin<Map>, ImmutableListMixin<Map>
+ implements List<Map> {
// To suppress missing implicit constructor warnings.
- factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
+ factory SqlResultSetRowList._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('SQLResultSetRowList.length')
@DocsEditable()
int get length => JS("int", "#.length", this);
- Map operator[](int index) {
- if (JS("bool", "# >>> 0 !== # || # >= #", index,
- index, index, length))
+ Map operator [](int index) {
+ if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
throw new RangeError.index(index, this);
return this.item(index);
}
- void operator[]=(int index, Map value) {
+
+ void operator []=(int index, Map value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Map> mixins.
// Map is the element type.
-
set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
@@ -267,17 +274,17 @@ class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList
Map item(int index) {
return convertNativeToDart_Dictionary(_item_1(index));
}
+
@JSName('item')
@DomName('SQLResultSetRowList.item')
@DocsEditable()
@Creates('=Object')
- _item_1(index) native;
+ _item_1(index) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('SQLTransaction')
@SupportedBrowser(SupportedBrowser.CHROME)
@@ -288,9 +295,13 @@ class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList
@Native("SQLTransaction")
class SqlTransaction extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
+ factory SqlTransaction._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('SQLTransaction.executeSql')
@DocsEditable()
- void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCallback callback, SqlStatementErrorCallback errorCallback]) native;
+ void executeSql(String sqlStatement, List<Object> arguments,
+ [SqlStatementCallback callback,
+ SqlStatementErrorCallback errorCallback]) native ;
}
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/lib/web_gl/dart2js/web_gl_dart2js.dart ('k') | pkg/dev_compiler/tool/input_sdk/libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698