OLD | NEW |
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 function_ref_element; | 5 library function_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, FunctionRef, isSyntheticFunction, ClassRef, ObjectRef, | 10 show IsolateRef, FunctionRef, isSyntheticFunction, ClassRef, ObjectRef, |
11 getFunctionFullName; | 11 getFunctionFullName; |
12 import 'package:observatory/src/elements/class_ref.dart'; | 12 import 'package:observatory/src/elements/class_ref.dart'; |
13 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; | 13 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; |
14 import 'package:observatory/src/elements/helpers/tag.dart'; | 14 import 'package:observatory/src/elements/helpers/tag.dart'; |
15 import 'package:observatory/src/elements/helpers/uris.dart'; | 15 import 'package:observatory/src/elements/helpers/uris.dart'; |
16 | 16 |
17 class FunctionRefElement extends HtmlElement implements Renderable { | 17 class FunctionRefElement extends HtmlElement implements Renderable { |
18 static const tag = const Tag<FunctionRefElement>('function-ref-wrapped'); | 18 static const tag = const Tag<FunctionRefElement>('function-ref'); |
19 | 19 |
20 RenderingScheduler<FunctionRefElement> _r; | 20 RenderingScheduler<FunctionRefElement> _r; |
21 | 21 |
22 Stream<RenderedEvent<FunctionRefElement>> get onRendered => _r.onRendered; | 22 Stream<RenderedEvent<FunctionRefElement>> get onRendered => _r.onRendered; |
23 | 23 |
24 M.IsolateRef _isolate; | 24 M.IsolateRef _isolate; |
25 M.FunctionRef _function; | 25 M.FunctionRef _function; |
26 bool _qualified; | 26 bool _qualified; |
27 | 27 |
28 M.IsolateRef get isolate => _isolate; | 28 M.IsolateRef get isolate => _isolate; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 content.addAll([ | 80 content.addAll([ |
81 new SpanElement()..text = '.', | 81 new SpanElement()..text = '.', |
82 new ClassRefElement(_isolate, owner, queue: _r.queue) | 82 new ClassRefElement(_isolate, owner, queue: _r.queue) |
83 ]); | 83 ]); |
84 } | 84 } |
85 } | 85 } |
86 children = content.reversed.toList(growable: false); | 86 children = content.reversed.toList(growable: false); |
87 title = M.getFunctionFullName(_function); | 87 title = M.getFunctionFullName(_function); |
88 } | 88 } |
89 } | 89 } |
OLD | NEW |