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

Side by Side Diff: utils/dartdoc/client-live-nav.dart

Issue 9271020: Include subtype information in generated docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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('../../frog/lang.dart', prefix: 'frog');
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 html.add( 97 html.add(
98 ''' 98 '''
99 <a href="$prefix${type["url"]}"> 99 <a href="$prefix${type["url"]}">
100 <div class="icon-$icon"></div>${type["name"]} 100 <div class="icon-$icon"></div>${type["name"]}
101 </a> 101 </a>
102 '''); 102 ''');
103 } 103 }
104 html.add('</li>'); 104 html.add('</li>');
105 } 105 }
106 106
107 html.add('<ul>'); 107 html.add('<ul class="icon">');
108 types.forEach((type) => writeType(type['kind'], type)); 108 types.forEach((type) => writeType(type['kind'], type));
109 exceptions.forEach((type) => writeType('exception', type)); 109 exceptions.forEach((type) => writeType('exception', type));
110 html.add('</ul>'); 110 html.add('</ul>');
111 } 111 }
OLDNEW
« no previous file with comments | « no previous file | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698