| OLD | NEW |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
| 2 <link rel="import" href="class_ref.html"> | 2 <link rel="import" href="class_ref.html"> |
| 3 <link rel="import" href="code_ref.html"> | 3 <link rel="import" href="code_ref.html"> |
| 4 <link rel="import" href="function_ref.html"> | 4 <link rel="import" href="function_ref.html"> |
| 5 <link rel="import" href="library_ref.html"> | 5 <link rel="import" href="library_ref.html"> |
| 6 <link rel="import" href="observatory_element.html"> | 6 <link rel="import" href="observatory_element.html"> |
| 7 <link rel="import" href="nav_bar.html"> | 7 <link rel="import" href="nav_bar.html"> |
| 8 <link rel="import" href="script_inset.html"> | 8 <link rel="import" href="script_inset.html"> |
| 9 <link rel="import" href="script_ref.html"> | 9 <link rel="import" href="script_ref.html"> |
| 10 | 10 |
| 11 <polymer-element name="function-view" extends="observatory-element"> | 11 <polymer-element name="function-view" extends="observatory-element"> |
| 12 <template> | 12 <template> |
| 13 <link rel="stylesheet" href="css/shared.css"> | 13 <link rel="stylesheet" href="css/shared.css"> |
| 14 <nav-bar> | 14 <nav-bar> |
| 15 <top-nav-menu></top-nav-menu> | 15 <top-nav-menu></top-nav-menu> |
| 16 <isolate-nav-menu isolate="{{ function.isolate }}"></isolate-nav-menu> | 16 <isolate-nav-menu isolate="{{ function.isolate }}"></isolate-nav-menu> |
| 17 <template if="{{ function.owningClass != null }}"> | 17 <library-nav-menu library="{{ function.library }}"></library-nav-menu> |
| 18 <!-- TODO(turnidge): Add library nav menu here. --> | 18 <template if="{{ function.dartOwner is ServiceClass }}"> |
| 19 <class-nav-menu cls="{{ function.owningClass }}"></class-nav-menu> | 19 <class-nav-menu cls="{{ function.dartOwner }}"></class-nav-menu> |
| 20 </template> | |
| 21 <template if="{{ function.owningLibrary != null }}"> | |
| 22 <library-nav-menu library="{{ function.owningLibrary }}"></library-nav-m
enu> | |
| 23 </template> | 20 </template> |
| 24 <nav-menu link="{{ makeLink('/inspect', function) }}" anchor="{{ function.
name }}" last="{{ true }}"></nav-menu> | 21 <nav-menu link="{{ makeLink('/inspect', function) }}" anchor="{{ function.
name }}" last="{{ true }}"></nav-menu> |
| 25 <nav-refresh callback="{{ refreshCoverage }}" label="Refresh Coverage"></n
av-refresh> | 22 <nav-refresh callback="{{ refreshCoverage }}" label="Refresh Coverage"></n
av-refresh> |
| 26 <nav-refresh callback="{{ refresh }}"></nav-refresh> | 23 <nav-refresh callback="{{ refresh }}"></nav-refresh> |
| 27 <nav-control></nav-control> | 24 <nav-control></nav-control> |
| 28 </nav-bar> | 25 </nav-bar> |
| 29 | 26 |
| 30 <div class="content"> | 27 <div class="content"> |
| 31 <h1>function {{ function.qualifiedName }}</h1> | 28 <h1>function {{ function.qualifiedName }}</h1> |
| 32 | 29 |
| 33 <div class="memberList"> | 30 <div class="memberList"> |
| 34 <div class="memberItem"> | 31 <div class="memberItem"> |
| 35 <div class="memberName">kind</div> | 32 <div class="memberName">kind</div> |
| 36 <div class="memberValue"> | 33 <div class="memberValue"> |
| 37 <template if="{{ function.isStatic }}">static</template> | 34 <template if="{{ function.isStatic }}">static</template> |
| 38 <template if="{{ function.isConst }}">const</template> | 35 <template if="{{ function.isConst }}">const</template> |
| 39 {{ function.kind.toString() }} | 36 {{ function.kind.toString() }} |
| 40 </div> | 37 </div> |
| 41 </div> | 38 </div> |
| 42 <template if="{{ function.parent != null }}"> | |
| 43 <div class="memberItem"> | |
| 44 <div class="memberName">parent function</div> | |
| 45 <div class="memberValue"> | |
| 46 <function-ref ref="{{ function.parent }}"></function-ref> | |
| 47 </div> | |
| 48 </div> | |
| 49 </template> | |
| 50 <div class="memberItem"> | 39 <div class="memberItem"> |
| 51 <div class="memberName">owner</div> | 40 <div class="memberName">owner</div> |
| 52 <div class="memberValue"> | 41 <div class="memberValue"> |
| 53 <template if="{{ function.owningClass != null }}"> | 42 <any-service-ref ref="{{ function.dartOwner }}"></any-service-ref> |
| 54 <class-ref ref="{{ function.owningClass }}"></class-ref> | |
| 55 </template> | |
| 56 <template if="{{ function.owningLibrary != null }}"> | |
| 57 <library-ref ref="{{ function.owningLibrary }}"></library-ref> | |
| 58 </template> | |
| 59 </div> | 43 </div> |
| 60 </div> | 44 </div> |
| 61 <div class="memberItem"> | 45 <div class="memberItem"> |
| 62 <div class="memberName">script</div> | 46 <div class="memberName">script</div> |
| 63 <div class="memberValue"> | 47 <div class="memberValue"> |
| 64 <script-ref ref="{{ function.script }}" | 48 <script-ref ref="{{ function.script }}" |
| 65 pos="{{ function.tokenPos }}"> | 49 pos="{{ function.tokenPos }}"> |
| 66 </script-ref> | 50 </script-ref> |
| 67 </div> | 51 </div> |
| 68 </div> | 52 </div> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 <script-inset script="{{ function.script }}" | 99 <script-inset script="{{ function.script }}" |
| 116 startPos="{{ function.tokenPos }}" | 100 startPos="{{ function.tokenPos }}" |
| 117 endPos="{{ function.endTokenPos }}"> | 101 endPos="{{ function.endTokenPos }}"> |
| 118 </script-inset> | 102 </script-inset> |
| 119 | 103 |
| 120 <br> | 104 <br> |
| 121 </template> | 105 </template> |
| 122 </polymer-element> | 106 </polymer-element> |
| 123 | 107 |
| 124 <script type="application/dart" src="function_view.dart"></script> | 108 <script type="application/dart" src="function_view.dart"></script> |
| OLD | NEW |