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

Side by Side Diff: utils/apidoc/mdn/prettyPrint.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « utils/apidoc/mdn/postProcess.dart ('k') | utils/apidoc/mdn/util.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 /** 1 /**
2 * Creates database.html, examples.html, and obsolete.html. 2 * Creates database.html, examples.html, and obsolete.html.
3 */ 3 */
4 4
5 library prettyPrint; 5 library prettyPrint;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:json'; 8 import 'dart:json' as json;
9 import 'util.dart'; 9 import 'util.dart';
10 10
11 String orEmpty(String str) { 11 String orEmpty(String str) {
12 return str == null ? "" : str; 12 return str == null ? "" : str;
13 } 13 }
14 14
15 List<String> sortStringCollection(Collection<String> collection) { 15 List<String> sortStringCollection(Iterable<String> collection) {
16 final out = <String>[]; 16 final out = <String>[];
17 out.addAll(collection); 17 out.addAll(collection);
18 out.sort((String a, String b) => a.compareTo(b)); 18 out.sort((String a, String b) => a.compareTo(b));
19 return out; 19 return out;
20 } 20 }
21 21
22 int addMissing(StringBuffer sb, String type, Map members) { 22 int addMissing(StringBuffer sb, String type, Map members) {
23 int total = 0; 23 int total = 0;
24 /** 24 /**
25 * Add all missing members to the string output and return the number of 25 * Add all missing members to the string output and return the number of
(...skipping 18 matching lines...) Expand all
44 } 44 }
45 45
46 addMissingHelper('properties'); 46 addMissingHelper('properties');
47 addMissingHelper('methods'); 47 addMissingHelper('methods');
48 addMissingHelper('constants'); 48 addMissingHelper('constants');
49 return total; 49 return total;
50 } 50 }
51 51
52 void main() { 52 void main() {
53 // Database of code documentation. 53 // Database of code documentation.
54 final Map<String, Map> database = JSON.parse( 54 final Map<String, Map> database = json.parse(
55 new File('output/database.filtered.json').readAsStringSync()); 55 new File('output/database.filtered.json').readAsStringSync());
56 56
57 // Types we have documentation for. 57 // Types we have documentation for.
58 matchedTypes = new Set<String>(); 58 matchedTypes = new Set<String>();
59 int numMissingMethods = 0; 59 int numMissingMethods = 0;
60 int numFoundMethods = 0; 60 int numFoundMethods = 0;
61 int numExtraMethods = 0; 61 int numExtraMethods = 0;
62 int numGen = 0; 62 int numGen = 0;
63 int numSkipped = 0; 63 int numSkipped = 0;
64 final sbSkipped = new StringBuffer(); 64 final sbSkipped = new StringBuffer();
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 <th>IDL</th> 421 <th>IDL</th>
422 <th>Status</th> 422 <th>Status</th>
423 </tr> 423 </tr>
424 $sbObsolete 424 $sbObsolete
425 </tbody> 425 </tbody>
426 </table> 426 </table>
427 </body> 427 </body>
428 </html> 428 </html>
429 """); 429 """);
430 } 430 }
OLDNEW
« no previous file with comments | « utils/apidoc/mdn/postProcess.dart ('k') | utils/apidoc/mdn/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698