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

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

Issue 10095017: added printWarnings option to HtmlDiff (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: named argument Created 8 years, 8 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/apidoc/html_diff.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) 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 /** 5 /**
6 * This generates the reference documentation for the core libraries that come 6 * This generates the reference documentation for the core libraries that come
7 * with dart. It is built on top of dartdoc, which is a general-purpose library 7 * with dart. It is built on top of dartdoc, which is a general-purpose library
8 * for generating docs from any Dart code. This library extends that to include 8 * for generating docs from any Dart code. This library extends that to include
9 * additional information and styling specific to our standard library. 9 * additional information and styling specific to our standard library.
10 * 10 *
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 var files = new VMFileSystem(); 83 var files = new VMFileSystem();
84 parseOptions(frogPath, ['', '', '--libdir=$frogPath/lib'], files); 84 parseOptions(frogPath, ['', '', '--libdir=$frogPath/lib'], files);
85 initializeWorld(files); 85 initializeWorld(files);
86 86
87 print('Parsing MDN data...'); 87 print('Parsing MDN data...');
88 final mdnFile = new File('${doc.scriptDir}/mdn/database.json'); 88 final mdnFile = new File('${doc.scriptDir}/mdn/database.json');
89 final mdn = JSON.parse(mdnFile.readAsTextSync()); 89 final mdn = JSON.parse(mdnFile.readAsTextSync());
90 90
91 print('Cross-referencing dart:dom and dart:html...'); 91 print('Cross-referencing dart:dom and dart:html...');
92 HtmlDiff.initialize(); 92 HtmlDiff.initialize();
93 _diff = new HtmlDiff(); 93 _diff = new HtmlDiff(printWarnings:false);
94 _diff.run(); 94 _diff.run();
95 world.reset(); 95 world.reset();
96 96
97 // Add all of the core libraries. 97 // Add all of the core libraries.
98 world.getOrAddLibrary('dart:core'); 98 world.getOrAddLibrary('dart:core');
99 world.getOrAddLibrary('dart:coreimpl'); 99 world.getOrAddLibrary('dart:coreimpl');
100 world.getOrAddLibrary('dart:json'); 100 world.getOrAddLibrary('dart:json');
101 world.getOrAddLibrary('dart:dom'); 101 world.getOrAddLibrary('dart:dom');
102 world.getOrAddLibrary('dart:html'); 102 world.getOrAddLibrary('dart:html');
103 world.getOrAddLibrary('dart:io'); 103 world.getOrAddLibrary('dart:io');
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 return 489 return
490 ''' 490 '''
491 <p class="correspond">This corresponds to $domTypesText in the 491 <p class="correspond">This corresponds to $domTypesText in the
492 ${a("dom.html", "dart:dom")} library.</p> 492 ${a("dom.html", "dart:dom")} library.</p>
493 '''; 493 ''';
494 } 494 }
495 495
496 return ''; 496 return '';
497 } 497 }
498 } 498 }
OLDNEW
« no previous file with comments | « no previous file | utils/apidoc/html_diff.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698