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

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

Issue 10516002: Fix apidoc after r8231. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | no next file » | 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 compilerPath = arg.substring('--compiler='.length); 60 compilerPath = arg.substring('--compiler='.length);
61 } else { 61 } else {
62 print('Unknown option: $arg'); 62 print('Unknown option: $arg');
63 return; 63 return;
64 } 64 }
65 break; 65 break;
66 } 66 }
67 } 67 }
68 68
69 final frogPath = joinPaths(doc.scriptDir, '../../frog/'); 69 final frogPath = joinPaths(doc.scriptDir, '../../frog/');
70 final libDir = joinPaths(frogPath, 'lib');
71 70
72 if (compilerPath === null) { 71 if (compilerPath === null) {
73 compilerPath = joinPaths(frogPath, 'frog.py'); 72 compilerPath = joinPaths(frogPath, 'frog.py');
74 } 73 }
75 74
76 doc.cleanOutputDirectory(outputDir); 75 doc.cleanOutputDirectory(outputDir);
77 76
78 // Compile the client-side code to JS. 77 // Compile the client-side code to JS.
79 // TODO(bob): Right path. 78 // TODO(bob): Right path.
80 79
81 final clientScript = (mode == doc.MODE_STATIC) ? 80 final clientScript = (mode == doc.MODE_STATIC) ?
82 'static' : 'live-nav'; 81 'static' : 'live-nav';
83 final Future scriptCompiled = doc.compileScript(compilerPath, libDir, 82 final Future scriptCompiled = doc.compileScript(compilerPath,
84 '${doc.scriptDir}/../../lib/dartdoc/client-$clientScript.dart', 83 '${doc.scriptDir}/../../lib/dartdoc/client-$clientScript.dart',
85 '${outputDir}/client-$clientScript.js'); 84 '${outputDir}/client-$clientScript.js');
86 85
87 // TODO(rnystrom): Use platform-specific path separator. 86 // TODO(rnystrom): Use platform-specific path separator.
88 // The basic dartdoc-provided static content. 87 // The basic dartdoc-provided static content.
89 final Future copiedStatic = doc.copyFiles( 88 final Future copiedStatic = doc.copyFiles(
90 '${doc.scriptDir}/../../lib/dartdoc/static', outputDir); 89 '${doc.scriptDir}/../../lib/dartdoc/static', outputDir);
91 90
92 // The apidoc-specific static content. 91 // The apidoc-specific static content.
93 final Future copiedApiDocStatic = doc.copyFiles('${doc.scriptDir}/static', 92 final Future copiedApiDocStatic = doc.copyFiles('${doc.scriptDir}/static',
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 if (member.isConstructor || member.isFactory) { 408 if (member.isConstructor || member.isFactory) {
410 final separator = member.constructorName == '' ? '' : '.'; 409 final separator = member.constructorName == '' ? '' : '.';
411 memberName = 'new $typeName$separator${member.constructorName}'; 410 memberName = 'new $typeName$separator${member.constructorName}';
412 } else if (member.name.startsWith(GET_PREFIX)) { 411 } else if (member.name.startsWith(GET_PREFIX)) {
413 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}'; 412 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}';
414 } 413 }
415 414
416 return a(memberUrl(member), memberName); 415 return a(memberUrl(member), memberName);
417 } 416 }
418 } 417 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698