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

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

Issue 12388048: Cleanup two warning messages when running apidoc, and update the apidoc.gyp file to rerun the tool (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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/apidoc.gyp » ('j') | utils/apidoc/apidoc.gyp » ('J')
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 109 }
110 }); 110 });
111 111
112 var lister = new Directory.fromPath(doc.scriptDir.append('../../pkg')).list(); 112 var lister = new Directory.fromPath(doc.scriptDir.append('../../pkg')).list();
113 lister.listen( 113 lister.listen(
114 (entity) { 114 (entity) {
115 if (entity is Directory) { 115 if (entity is Directory) {
116 var path = new Path(entity.path); 116 var path = new Path(entity.path);
117 var libName = path.filename; 117 var libName = path.filename;
118 118
119 // Ignore hidden directories (like .svn) as well as pkg.xcodeproj.
120 if (libName.startsWith('.') || libName.endsWith('.xcodeproj')) {
121 return;
122 }
123
119 // TODO(rnystrom): Get rid of oldStylePath support when all 124 // TODO(rnystrom): Get rid of oldStylePath support when all
120 // packages are using new layout. See #5106. 125 // packages are using new layout. See #5106.
121 var oldStylePath = path.append('${libName}.dart'); 126 var oldStylePath = path.append('${libName}.dart');
122 var newStylePath = path.append('lib/${libName}.dart'); 127 var newStylePath = path.append('lib/${libName}.dart');
123 128
124 if (new File.fromPath(oldStylePath).existsSync()) { 129 if (new File.fromPath(oldStylePath).existsSync()) {
125 apidocLibraries.add(oldStylePath); 130 apidocLibraries.add(oldStylePath);
126 includedLibraries.add(libName); 131 includedLibraries.add(libName);
127 } else if (new File.fromPath(newStylePath).existsSync()) { 132 } else if (new File.fromPath(newStylePath).existsSync()) {
128 apidocLibraries.add(newStylePath); 133 apidocLibraries.add(newStylePath);
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 final typeName = member.owner.simpleName; 440 final typeName = member.owner.simpleName;
436 var memberName = '$typeName.${member.simpleName}'; 441 var memberName = '$typeName.${member.simpleName}';
437 if (member is MethodMirror && (member.isConstructor || member.isFactory)) { 442 if (member is MethodMirror && (member.isConstructor || member.isFactory)) {
438 final separator = member.constructorName == '' ? '' : '.'; 443 final separator = member.constructorName == '' ? '' : '.';
439 memberName = 'new $typeName$separator${member.constructorName}'; 444 memberName = 'new $typeName$separator${member.constructorName}';
440 } 445 }
441 446
442 return a(memberUrl(member), memberName); 447 return a(memberUrl(member), memberName);
443 } 448 }
444 } 449 }
OLDNEW
« no previous file with comments | « no previous file | utils/apidoc/apidoc.gyp » ('j') | utils/apidoc/apidoc.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698