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

Unified Diff: tests/language/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/optimized_setter_test.dart
diff --git a/tests/language/optimized_setter_test.dart b/tests/language/optimized_setter_test.dart
index 2c818776d5495f7b3489eab0a529fede72decc5e..d6facf199cc981cd18ec9c8c639e4d1257514053 100644
--- a/tests/language/optimized_setter_test.dart
+++ b/tests/language/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