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

Unified Diff: runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/field_ref.html

Issue 561053003: Give fields a model class in the service library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: build Created 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/field_ref.html
diff --git a/runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/field_ref.html b/runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/field_ref.html
index ab1de8ef83d947311d2f5ce46d9e4b2d57779089..bc74935bc8f6eab1c6df09f5ce82ae394c263fcb 100644
--- a/runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/field_ref.html
+++ b/runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/field_ref.html
@@ -7,15 +7,15 @@
<template>
<link rel="stylesheet" href="css/shared.css">
<span>
- <template if="{{ ref['static'] }}">static</template>
- <template if="{{ ref['final'] }}">final</template>
- <template if="{{ ref['const'] }}">const</template>
- <template if="{{ (ref['declaredType'].name == 'dynamic' &&
- !ref['final'] && !ref['const']) }}">
+ <template if="{{ ref.isStatic] }}">static</template>
+ <template if="{{ ref.isFinal }}">final</template>
+ <template if="{{ ref.isConst }}">const</template>
+ <template if="{{ (ref.declaredType.name == 'dynamic' &&
+ !ref.isFinal && !ref.isConst) }}">
var
</template>
- <template if="{{ (ref['declaredType'].name != 'dynamic') }}">
- <instance-ref ref="{{ ref['declaredType'] }}"></instance-ref>
+ <template if="{{ (ref.declaredType.name != 'dynamic') }}">
+ <instance-ref ref="{{ ref.declaredType }}"></instance-ref>
</template>
<a on-click="{{ goto }}" title="{{ hoverText }}" _href="{{ url }}">{{ name }}</a>
</span>

Powered by Google App Engine
This is Rietveld 408576698