| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** Provides client-side behavior for generated docs. */ | 5 /** Provides client-side behavior for generated docs. */ |
| 6 #library('client-live-nav'); | 6 #library('client-live-nav'); |
| 7 | 7 |
| 8 #import('dart:html'); | 8 #import('dart:html'); |
| 9 #import('dart:json'); | 9 #import('dart:json'); |
| 10 #import('frog/lang.dart', prefix: 'frog'); | 10 #import('../compiler/implementation/source_file.dart'); |
| 11 #import('classify.dart'); | 11 #import('classify.dart'); |
| 12 #import('markdown.dart', prefix: 'md'); | 12 #import('markdown.dart', prefix: 'md'); |
| 13 | 13 |
| 14 #source('client-shared.dart'); | 14 #source('client-shared.dart'); |
| 15 | 15 |
| 16 // The names of the library and type that this page documents. | 16 // The names of the library and type that this page documents. |
| 17 String currentLibrary = null; | 17 String currentLibrary = null; |
| 18 String currentType = null; | 18 String currentType = null; |
| 19 | 19 |
| 20 // What we need to prefix relative URLs with to get them to work. | 20 // What we need to prefix relative URLs with to get them to work. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 '''); | 99 '''); |
| 100 } | 100 } |
| 101 html.add('</li>'); | 101 html.add('</li>'); |
| 102 } | 102 } |
| 103 | 103 |
| 104 html.add('<ul class="icon">'); | 104 html.add('<ul class="icon">'); |
| 105 types.forEach((type) => writeType(type['kind'], type)); | 105 types.forEach((type) => writeType(type['kind'], type)); |
| 106 exceptions.forEach((type) => writeType('exception', type)); | 106 exceptions.forEach((type) => writeType('exception', type)); |
| 107 html.add('</ul>'); | 107 html.add('</ul>'); |
| 108 } | 108 } |
| OLD | NEW |