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

Unified Diff: utils/apidoc/html_diff.dart

Issue 9256002: Add a mode to dartdoc to generate the navigation on the client. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | utils/dartdoc/.gitignore » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/html_diff.dart
diff --git a/utils/apidoc/html_diff.dart b/utils/apidoc/html_diff.dart
index fd52d7507389beaf4ce8e5ecb299b64e1a2742a2..d9db65138da4e0dfe88d895347505cb4de58891b 100644
--- a/utils/apidoc/html_diff.dart
+++ b/utils/apidoc/html_diff.dart
@@ -8,47 +8,12 @@
*/
#library('html_diff');
+#import('dart:coreimpl');
#import('../../frog/lang.dart');
#import('../../frog/file_system_node.dart');
#import('../../frog/file_system.dart');
#import('../dartdoc/dartdoc.dart');
-void main() {
- var files = new NodeFileSystem();
- parseOptions('../../frog', [] /* args */, files);
- initializeWorld(files);
- initializeDartDoc();
- HtmlDiff.initialize();
-
- var diff = new HtmlDiff();
- diff.run();
-
- diff.domToHtml.forEach((domMember, htmlMembers) {
- for (var htmlMember in htmlMembers) {
- if (diff.sameName(domMember, htmlMember)) continue;
- var htmlTypeName = htmlMember.declaringType.name;
- var htmlName = '$htmlTypeName.${htmlMember.name}';
- if (htmlMember.isConstructor || htmlMember.isFactory) {
- final separator = htmlMember.constructorName == '' ? '' : '.';
- htmlName = 'new $htmlTypeName$separator${htmlMember.constructorName}';
- }
- print('${domMember.declaringType.name}.${domMember.name} -> ${htmlName}');
- }
- });
-
- for (var type in diff.dom.types.getValues()) {
- if (type.name == null) continue;
- if (type.definition is FunctionTypeDefinition) continue;
- for (var member in type.members.getValues()) {
- if (!member.isPrivate && member.name != 'typeName' &&
- !diff.domToHtml.containsKey(member) &&
- (member is MethodMember || member is PropertyMember)) {
- print('No dart:html wrapper for ${type.name}.${member.name}');
- }
- }
- }
-}
-
/**
* A class for computing a many-to-many mapping between the types and members in
* `dart:dom` and `dart:html`. This mapping is based on two indicators:
« no previous file with comments | « no previous file | utils/dartdoc/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698