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

Unified Diff: dart/runtime/bin/vmservice/client/lib/src/observatory_elements/field_view.html

Issue 119673004: Version 1.1.0-dev.5.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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: dart/runtime/bin/vmservice/client/lib/src/observatory_elements/field_view.html
===================================================================
--- dart/runtime/bin/vmservice/client/lib/src/observatory_elements/field_view.html (revision 31530)
+++ dart/runtime/bin/vmservice/client/lib/src/observatory_elements/field_view.html (working copy)
@@ -1,4 +1,5 @@
<head>
+ <link rel="import" href="class_ref.html">
<link rel="import" href="observatory_element.html">
</head>
<polymer-element name="field-view" extends="observatory-element">
@@ -10,10 +11,8 @@
<template if="{{ field['static'] }}">static</template>
<template if="{{ field['final'] }}">final</template>
<template if="{{ field['const'] }}">const</template>
- {{ field['user_name'] }} ({{ field['name'] }})
- <a class="pull-right" href="{{ app.locationManager.currentIsolateClassLink(field['class']['id'])}}">
- {{ field['class']['user_name'] }}
- </a>
+ {{ field['user_name'] }} ({{ field['name'] }})
+ <class-ref app="{{ app }}" ref="{{ field['class'] }}"></class-ref>
</div>
<div class="panel-body">
<template if="{{ field['guard_class'] == 'dynamic'}}">
@@ -22,9 +21,9 @@
assigned a single type, performance may improve.
</div>
</template>
- <template if="{{ field['guard_class'] != 'dynamic'}}">
+ <template if="{{ (field['guard_class'] != 'dynamic') && (field['guard_class'] != 'unknown') }}">
<div class="alert alert-success">Field has monomorphic type</div>
- <template if="{{ (field['guard_class'] != 'dynamic') &&
+ <template if="{{ (field['guard_class'] != 'dynamic') &&
field['guard_nullable'] }}">
<div class="alert alert-info">
Field has been assigned null. If a field is never assigned null,
@@ -32,9 +31,7 @@
</div>
</template>
<blockquote>
- <a href="{{ app.locationManager.currentIsolateClassLink(field['guard_class']['id'])}}">
- {{ field['guard_class']['user_name'] }}
- </a>
+ <class-ref app="{{ app }}" ref="{{ field['guard_class'] }}"></class-ref>
</blockquote>
</template>
</div>

Powered by Google App Engine
This is Rietveld 408576698