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

Unified Diff: runtime/observatory/lib/src/elements/field_ref.dart

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 years, 3 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: runtime/observatory/lib/src/elements/field_ref.dart
diff --git a/runtime/observatory/lib/src/elements/field_ref.dart b/runtime/observatory/lib/src/elements/field_ref.dart
index 960cbaeaa1532a5f5304592099cbee55ace72893..b33749e94d42bcace4413e63fae0b2f5fb0aa375 100644
--- a/runtime/observatory/lib/src/elements/field_ref.dart
+++ b/runtime/observatory/lib/src/elements/field_ref.dart
@@ -12,9 +12,7 @@ import 'package:observatory/src/elements/instance_ref.dart';
class FieldRefElement extends HtmlElement implements Renderable {
static const tag = const Tag<FieldRefElement>('field-ref',
- dependencies: const [
- InstanceRefElement.tag
- ]);
+ dependencies: const [InstanceRefElement.tag]);
RenderingScheduler<FieldRefElement> _r;
@@ -27,8 +25,9 @@ class FieldRefElement extends HtmlElement implements Renderable {
M.IsolateRef get isolate => _isolate;
M.FieldRef get field => _field;
- factory FieldRefElement(M.IsolateRef isolate, M.FieldRef field,
- M.InstanceRepository instances, {RenderingQueue queue}) {
+ factory FieldRefElement(
+ M.IsolateRef isolate, M.FieldRef field, M.InstanceRepository instances,
+ {RenderingQueue queue}) {
assert(isolate != null);
assert(field != null);
assert(instances != null);
@@ -68,7 +67,7 @@ class FieldRefElement extends HtmlElement implements Renderable {
header += 'final ';
} else if (_field.isConst) {
header += 'const ';
- } else if (_field.declaredType.name == 'dynamic'){
+ } else if (_field.declaredType.name == 'dynamic') {
header += 'var ';
}
if (_field.declaredType.name == 'dynamic') {
@@ -77,7 +76,7 @@ class FieldRefElement extends HtmlElement implements Renderable {
new AnchorElement(href: Uris.inspect(_isolate, object: _field))
..text = _field.name
];
- }else {
+ } else {
children = [
new SpanElement()..text = header,
new InstanceRefElement(_isolate, _field.declaredType, _instances,
« no previous file with comments | « runtime/observatory/lib/src/elements/eval_box.dart ('k') | runtime/observatory/lib/src/elements/field_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698