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

Unified Diff: tests/language_strong/optimized_setter_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/language_strong/optimized_setter_test.dart
diff --git a/tests/language_strong/optimized_setter_test.dart b/tests/language_strong/optimized_setter_test.dart
index e1c4f3d9aedf1b4f3025d1d6352e0a2551e16895..60cf4070d1e9664e1dd6cdcb3eefd6e88a896589 100644
--- a/tests/language_strong/optimized_setter_test.dart
+++ b/tests/language_strong/optimized_setter_test.dart
@@ -10,9 +10,7 @@ class A {
int field = 0;
}
-class B extends A {
-}
-
+class B extends A {}
void sameImplicitSetter() {
oneTarget(var a, var v) {
@@ -38,7 +36,6 @@ void sameImplicitSetter() {
Expect.equals(8, b.field);
}
-
// Deoptimize when no feedback exists.
void setterNoFeedback() {
maybeSet(var a, var v, bool set_it) {
@@ -67,7 +64,10 @@ void setterNoFeedback() {
// Check non-implicit setter
class X {
int pField = 0;
- set field(v) { pField = v; }
+ set field(v) {
+ pField = v;
+ }
+
get field => 10;
}
@@ -97,7 +97,6 @@ class Y {
int field = 0;
}
-
multiImplicitSetter() {
oneTarget(var a, var v) {
return a.field = v;
@@ -118,7 +117,10 @@ multiImplicitSetter() {
class Z {
int pField = 0;
- set field(v) { pField = v; }
+ set field(v) {
+ pField = v;
+ }
+
get field => 10;
}

Powered by Google App Engine
This is Rietveld 408576698