| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
| 2 | |
| 3 <polymer-element name="field-view"> | |
| 4 <template> | |
| 5 <link rel="stylesheet" href="css/shared.css"> | |
| 6 <nav-bar> | |
| 7 <top-nav-menu></top-nav-menu> | |
| 8 <vm-nav-menu vm="{{ field.isolate.vm }}"></vm-nav-menu> | |
| 9 <isolate-nav-menu isolate="{{ field.isolate }}"></isolate-nav-menu> | |
| 10 <library-nav-menu library="{{ field.library }}"></library-nav-menu> | |
| 11 <template if="{{ field.dartOwner is ServiceClass }}"> | |
| 12 <class-nav-menu cls="{{ field.dartOwner }}"></class-nav-menu> | |
| 13 </template> | |
| 14 <nav-menu link="{{ makeLink('/inspect', field) }}" anchor="{{ field.name }
}" last="{{ true }}"></nav-menu> | |
| 15 <nav-refresh callback="{{ refresh }}"></nav-refresh> | |
| 16 <nav-notify notifications="{{ app.notifications }}"></nav-notify> | |
| 17 </nav-bar> | |
| 18 | |
| 19 <div class="content"> | |
| 20 <h1> | |
| 21 field | |
| 22 <template if="{{ field.isStatic }}">static</template> | |
| 23 <template if="{{ field.isFinal }}">final</template> | |
| 24 <template if="{{ field.isConst }}">const</template> | |
| 25 <template if="{{ (field.declaredType.name == 'dynamic' && | |
| 26 !field.isFinal && !field.isConst) }}"> | |
| 27 var | |
| 28 </template> | |
| 29 <template if="{{ (field.declaredType.name != 'dynamic') }}"> | |
| 30 {{ field.declaredType.name }} | |
| 31 </template> | |
| 32 {{ field.name }} | |
| 33 </h1> | |
| 34 | |
| 35 <object-common object="{{ field }}"></object-common> | |
| 36 <br> | |
| 37 | |
| 38 <div class="memberList"> | |
| 39 <div class="memberItem"> | |
| 40 <div class="memberName">owner</div> | |
| 41 <div class="memberValue"> | |
| 42 <any-service-ref ref="{{ field.dartOwner }}"></any-service-ref> | |
| 43 </div> | |
| 44 </div> | |
| 45 <div class="memberItem"> | |
| 46 <div class="memberName">script</div> | |
| 47 <div class="memberValue"> | |
| 48 <source-link location="{{ field.location }}"></source-link> | |
| 49 </div> | |
| 50 </div> | |
| 51 <template if="{{ !field.isStatic }}"> | |
| 52 <div class="memberItem" | |
| 53 title="The types observed for this field at runtime. Fields that
are observed to have a single type at runtime or to never be null may allow for
additional optimization."> | |
| 54 <div class="memberName">observed types</div> | |
| 55 <div class="memberValue"> | |
| 56 <template if="{{ field.guardClass == 'dynamic' }}"> | |
| 57 various | |
| 58 </template> | |
| 59 <template if="{{ field.guardClass == 'unknown' }}"> | |
| 60 none | |
| 61 </template> | |
| 62 <template if="{{ field.guardClass != null && | |
| 63 field.guardClass != 'unknown' && | |
| 64 field.guardClass != 'dynamic' }}"> | |
| 65 <class-ref ref="{{ field.guardClass }}"></class-ref> | |
| 66 <template if="{{ field.guardNullable }}"> | |
| 67 — null observed | |
| 68 </template> | |
| 69 <template if="{{ !field.guardNullable }}"> | |
| 70 — null not observed | |
| 71 </template> | |
| 72 </template> | |
| 73 </div> | |
| 74 </div> | |
| 75 </template> | |
| 76 <template if="{{ field.staticValue != null }}"> | |
| 77 <div class="memberItem"> | |
| 78 <div class="memberName">static value</div> | |
| 79 <div class="memberValue"> | |
| 80 <any-service-ref ref="{{ field.staticValue }}"></any-service-ref> | |
| 81 </div> | |
| 82 </div> | |
| 83 </template> | |
| 84 </div> | |
| 85 </div> | |
| 86 | |
| 87 <div class="content-centered-big"> | |
| 88 <hr> | |
| 89 <script-inset script="{{ field.location.script }}" | |
| 90 startPos="{{ field.location.tokenPos }}" | |
| 91 endPos="{{ field.location.tokenPos }}"> | |
| 92 </script-inset> | |
| 93 </div> | |
| 94 | |
| 95 <view-footer></view-footer> | |
| 96 </template> | |
| 97 </polymer-element> | |
| 98 | |
| 99 <script type="application/dart" src="field_view.dart"></script> | |
| OLD | NEW |