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

Side by Side Diff: runtime/observatory/lib/src/elements/code_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library code_ref_element; 5 library code_ref_element;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:async'; 8 import 'dart:async';
9 import 'package:observatory/models.dart' as M 9 import 'package:observatory/models.dart' as M
10 show IsolateRef, CodeRef, isSyntheticCode; 10 show IsolateRef, CodeRef, isSyntheticCode;
11 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; 11 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart';
12 import 'package:observatory/src/elements/helpers/tag.dart'; 12 import 'package:observatory/src/elements/helpers/tag.dart';
13 import 'package:observatory/src/elements/helpers/uris.dart'; 13 import 'package:observatory/src/elements/helpers/uris.dart';
14 14
15 class CodeRefElement extends HtmlElement implements Renderable { 15 class CodeRefElement extends HtmlElement implements Renderable {
16 static const tag = const Tag<CodeRefElement>('code-ref'); 16 static const tag = const Tag<CodeRefElement>('code-ref');
17 17
18 RenderingScheduler<CodeRefElement> _r; 18 RenderingScheduler<CodeRefElement> _r;
19 19
20 Stream<RenderedEvent<CodeRefElement>> get onRendered => _r.onRendered; 20 Stream<RenderedEvent<CodeRefElement>> get onRendered => _r.onRendered;
(...skipping 26 matching lines...) Expand all
47 @override 47 @override
48 void detached() { 48 void detached() {
49 super.detached(); 49 super.detached();
50 children = []; 50 children = [];
51 _r.disable(notify: true); 51 _r.disable(notify: true);
52 } 52 }
53 53
54 void render() { 54 void render() {
55 final name = (_code.isOptimized ? '*' : '') + _code.name; 55 final name = (_code.isOptimized ? '*' : '') + _code.name;
56 children = [ 56 children = [
57 new AnchorElement(href: M.isSyntheticCode(_code.kind) ? null 57 new AnchorElement(
58 : Uris.inspect(_isolate, object: _code)) 58 href: M.isSyntheticCode(_code.kind)
59 ..text = name 59 ? null
60 : Uris.inspect(_isolate, object: _code))..text = name
60 ]; 61 ];
61 } 62 }
62 } 63 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/class_view.dart ('k') | runtime/observatory/lib/src/elements/code_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698