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

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

Issue 1289803007: Make function-ref only show a link for Dart functions (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1f4d06f5dfd99ba861e658814228682b9721ebf6..d91a512bb9bcc3cc70b221e00a7a64348fd5dbaa 100644
--- a/runtime/observatory/lib/src/elements/function_ref.dart
+++ b/runtime/observatory/lib/src/elements/function_ref.dart
@@ -26,6 +26,10 @@ class FunctionRefElement extends ServiceRefElement {
if (ref == null) {
return;
}
+ if (!function.kind.isDart()) {
+ insertTextSpanIntoShadowRoot(name);
+ return;
+ }
if (qualified) {
if (function.dartOwner is ServiceFunction) {
var functionRef = new Element.tag('function-ref');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698