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

Unified Diff: pkg/dev_compiler/test/codegen/destructuring.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
« no previous file with comments | « pkg/dev_compiler/test/codegen/closure.dart ('k') | pkg/dev_compiler/test/codegen/es6_modules.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/test/codegen/destructuring.dart
diff --git a/pkg/dev_compiler/test/codegen/destructuring.dart b/pkg/dev_compiler/test/codegen/destructuring.dart
index 3c6bd6216cd9a39aecf9d4d8088493282e6b6d61..60cbe62a9244eee0434f6142ea3360a52951a060 100644
--- a/pkg/dev_compiler/test/codegen/destructuring.dart
+++ b/pkg/dev_compiler/test/codegen/destructuring.dart
@@ -5,22 +5,25 @@ import 'package:js/src/varargs.dart';
f(int a, b, [c = 1]) {
f(a, b, c);
}
+
external f_ext(int a, b, [c = 1]);
f_nat(int a, b, [c = 1]) native "f_nat";
f_sync(int a, b, [c = 1]) sync* {}
f_async(int a, b, [c = 1]) async* {}
-g(int a, b, {c : 1}) {
+g(int a, b, {c: 1}) {
f(a, b, c);
}
-external g_ext(int a, b, {c : 1});
-g_nat(int a, b, {c : 1}) native "g_nat";
-g_sync(int a, b, {c : 1}) sync* {}
-g_async(int a, b, {c : 1}) async* {}
+
+external g_ext(int a, b, {c: 1});
+g_nat(int a, b, {c: 1}) native "g_nat";
+g_sync(int a, b, {c: 1}) sync* {}
+g_async(int a, b, {c: 1}) async* {}
r(int a, @rest others) {
r(a, spread(others));
}
+
external r_ext(int a, @rest others);
r_nat(int a, @rest others) native "r_nat";
r_sync(int a, @rest others) sync* {}
@@ -29,13 +32,16 @@ r_async(int a, @rest others) async* {}
invalid_names1(int let, function, arguments) {
f(let, function, arguments);
}
+
invalid_names2([int let, function = 1, arguments]) {
f(let, function, arguments);
}
-invalid_names3({int let, function, arguments : 2}) {
+
+invalid_names3({int let, function, arguments: 2}) {
f(let, function, arguments);
}
-names_clashing_with_object_props({int constructor, valueOf, hasOwnProperty : 2}) {
+names_clashing_with_object_props(
+ {int constructor, valueOf, hasOwnProperty: 2}) {
f(constructor, valueOf, hasOwnProperty);
}
« no previous file with comments | « pkg/dev_compiler/test/codegen/closure.dart ('k') | pkg/dev_compiler/test/codegen/es6_modules.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698