| Index: runtime/observatory/lib/src/elements/function_ref.dart
|
| diff --git a/runtime/observatory/lib/src/elements/function_ref.dart b/runtime/observatory/lib/src/elements/function_ref.dart
|
| index 2e92f60919199414b2ea60b63ccf034c4fc71add..53920b97452473811cacd20af6b64571053ad83e 100644
|
| --- a/runtime/observatory/lib/src/elements/function_ref.dart
|
| +++ b/runtime/observatory/lib/src/elements/function_ref.dart
|
| @@ -28,18 +28,17 @@ class FunctionRefElement extends ServiceRefElement {
|
| }
|
| if (function.isDart) {
|
| if (qualified) {
|
| - // Add class-name or parent-function-name followed by a dot.
|
| - if ((function.parent == null) && (function.owningClass != null)) {
|
| - var classRef = new Element.tag('class-ref');
|
| - classRef.ref = function.owningClass;
|
| - shadowRoot.children.add(classRef);
|
| - insertTextSpanIntoShadowRoot('.');
|
| - } else if (function.parent != null) {
|
| + if (function.dartOwner is ServiceFunction) {
|
| var functionRef = new Element.tag('function-ref');
|
| - functionRef.ref = function.parent;
|
| + functionRef.ref = function.dartOwner;
|
| functionRef.qualified = true;
|
| shadowRoot.children.add(functionRef);
|
| insertTextSpanIntoShadowRoot('.');
|
| + } else if (function.dartOwner is Class) {
|
| + var classRef = new Element.tag('class-ref');
|
| + classRef.ref = function.dartOwner;
|
| + shadowRoot.children.add(classRef);
|
| + insertTextSpanIntoShadowRoot('.');
|
| }
|
| }
|
| insertLinkIntoShadowRoot(name, url, hoverText);
|
|
|