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

Unified Diff: pkg/kernel/testcases/input/redirecting_factory.dart

Issue 2747113004: Run dartfmt on kernel package (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/kernel/testcases/input/prefer_baseclass.dart ('k') | pkg/kernel/testcases/input/static_setter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/testcases/input/redirecting_factory.dart
diff --git a/pkg/kernel/testcases/input/redirecting_factory.dart b/pkg/kernel/testcases/input/redirecting_factory.dart
index cf7e91e6620636720ef20a87ae938551c76b231f..9ee5b829d6f82c52bac782006f06cb54a2d24462 100644
--- a/pkg/kernel/testcases/input/redirecting_factory.dart
+++ b/pkg/kernel/testcases/input/redirecting_factory.dart
@@ -1,47 +1,43 @@
abstract class FooBase<Tf> {
- int get x;
- factory FooBase(int x) = Foo<Tf>;
+ int get x;
+ factory FooBase(int x) = Foo<Tf>;
}
abstract class Foo<T> implements FooBase {
- factory Foo(int x) = Bar<String,T>;
+ factory Foo(int x) = Bar<String, T>;
}
-class Bar<Sb,Tb> implements Foo<Tb> {
- int x;
- Bar(this.x) {
- print('Bar<$Sb,$Tb>');
- }
+class Bar<Sb, Tb> implements Foo<Tb> {
+ int x;
+ Bar(this.x) {
+ print('Bar<$Sb,$Tb>');
+ }
}
class Builder<X> {
- method() {
- return new FooBase<X>(4);
- }
+ method() {
+ return new FooBase<X>(4);
+ }
}
-class SimpleCase<A,B> {
- factory SimpleCase() = SimpleCaseImpl<A,B>;
+class SimpleCase<A, B> {
+ factory SimpleCase() = SimpleCaseImpl<A, B>;
}
-class SimpleCaseImpl<Ai,Bi> implements SimpleCase<Ai,Bi> {
- factory SimpleCaseImpl() = SimpleCaseImpl2<Ai,Bi>;
+class SimpleCaseImpl<Ai, Bi> implements SimpleCase<Ai, Bi> {
+ factory SimpleCaseImpl() = SimpleCaseImpl2<Ai, Bi>;
}
-class SimpleCaseImpl2<Ai2,Bi2> implements SimpleCaseImpl<Ai2,Bi2> {
-}
-
-class Base<M> {
+class SimpleCaseImpl2<Ai2, Bi2> implements SimpleCaseImpl<Ai2, Bi2> {}
-}
-class Mixin<M> {
+class Base<M> {}
-}
+class Mixin<M> {}
class Mix<M> = Base<M> with Mixin<M>;
main() {
- print(new FooBase<double>(4).x);
- new SimpleCase<int,double>();
- new Mix<double>();
+ print(new FooBase<double>(4).x);
+ new SimpleCase<int, double>();
+ new Mix<double>();
}
« no previous file with comments | « pkg/kernel/testcases/input/prefer_baseclass.dart ('k') | pkg/kernel/testcases/input/static_setter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698