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

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

Issue 10894005: Remove library_map.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove dart:mirror from dart2js and dartdoc. Created 8 years, 3 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 doc.libPath); 98 doc.libPath);
99 print('Processing handwritten HTML documentation...'); 99 print('Processing handwritten HTML documentation...');
100 100
101 // Process libraries. 101 // Process libraries.
102 102
103 // TODO(johnniwinther): Libraries for the compilation seem to be more like 103 // TODO(johnniwinther): Libraries for the compilation seem to be more like
104 // URIs. Perhaps Path should have a toURI() method. 104 // URIs. Perhaps Path should have a toURI() method.
105 // Add all of the core libraries. 105 // Add all of the core libraries.
106 final apidocLibraries = <Path>[]; 106 final apidocLibraries = <Path>[];
107 LIBRARIES.forEach((String name, LibraryInfo info) { 107 LIBRARIES.forEach((String name, LibraryInfo info) {
108 if (info.isDart2JsLibrary() && 108 if (info.documented) {
109 info.category != "Internal" &&
110 info.documented) {
111 apidocLibraries.add(new Path('dart:$name')); 109 apidocLibraries.add(new Path('dart:$name'));
112 } 110 }
113 }); 111 });
114 112
115 final includedLibraries = <String>[]; 113 final includedLibraries = <String>[];
116 var lister = new Directory.fromPath( 114 var lister = new Directory.fromPath(
117 doc.scriptDir.append('../../pkg')).list(); 115 doc.scriptDir.append('../../pkg')).list();
118 lister.onDir = (dirPath) { 116 lister.onDir = (dirPath) {
119 var path = new Path.fromNative(dirPath); 117 var path = new Path.fromNative(dirPath);
120 var libname = path.filename; 118 var libname = path.filename;
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 final typeName = member.surroundingDeclaration.simpleName; 526 final typeName = member.surroundingDeclaration.simpleName;
529 var memberName = '$typeName.${member.simpleName}'; 527 var memberName = '$typeName.${member.simpleName}';
530 if (member is MethodMirror && (member.isConstructor || member.isFactory)) { 528 if (member is MethodMirror && (member.isConstructor || member.isFactory)) {
531 final separator = member.constructorName == '' ? '' : '.'; 529 final separator = member.constructorName == '' ? '' : '.';
532 memberName = 'new $typeName$separator${member.constructorName}'; 530 memberName = 'new $typeName$separator${member.constructorName}';
533 } 531 }
534 532
535 return a(memberUrl(member), memberName); 533 return a(memberUrl(member), memberName);
536 } 534 }
537 } 535 }
OLDNEW
« lib/compiler/implementation/apiimpl.dart ('K') | « pkg/dartdoc/dartdoc.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698