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

Unified Diff: test/dart_codegen/expect/core/expando.dart

Issue 963593002: Disable formatting and add new-lines to make tests faster. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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: test/dart_codegen/expect/core/expando.dart
diff --git a/test/dart_codegen/expect/core/expando.dart b/test/dart_codegen/expect/core/expando.dart
index 7afe768f5d8e28256dd5a502e7d5ad2adf37f4b4..00a70510f9e64780fe2a121b8491fffd68d90640 100644
--- a/test/dart_codegen/expect/core/expando.dart
+++ b/test/dart_codegen/expect/core/expando.dart
@@ -1,22 +1,17 @@
part of dart.core;
-
-class Expando<T> {
- final String name;
- Expando([String name]) : this.name = name;
- String toString() => "Expando:$name";
- T operator [](Object object) {
- var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
- return ((__x21) => DDC$RT.cast(__x21, dynamic, T, "CastGeneral",
- """line 55, column 12 of dart:core/expando.dart: """, __x21 is T,
- false))(
- (values == null) ? null : Primitives.getProperty(values, _getKey()));
+ class Expando<T> {final String name;
+ Expando([String name]) : this.name = name;
+ String toString() => "Expando:$name";
+ T operator [](Object object) {
+ var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
+ return ((__x21) => DDC$RT.cast(__x21, dynamic, T, "CastGeneral", """line 55, column 12 of dart:core/expando.dart: """, __x21 is T, false))((values == null) ? null : Primitives.getProperty(values, _getKey()));
}
- void operator []=(Object object, T value) {
- var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
- if (values == null) {
- values = new Object();
- Primitives.setProperty(object, _EXPANDO_PROPERTY_NAME, values);
+ void operator []=(Object object, T value) {
+ var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
+ if (values == null) {
+ values = new Object();
+ Primitives.setProperty(object, _EXPANDO_PROPERTY_NAME, values);
}
- Primitives.setProperty(values, _getKey(), value);
+ Primitives.setProperty(values, _getKey(), value);
}
}

Powered by Google App Engine
This is Rietveld 408576698