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

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

Issue 46673003: Remove uses of Options from utils directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/css/tool.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 12 matching lines...) Expand all
23 // TODO(rnystrom): Use "package:" URL (#4968). 23 // TODO(rnystrom): Use "package:" URL (#4968).
24 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'; 24 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart';
25 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dar t'; 25 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dar t';
26 import '../../sdk/lib/_internal/compiler/implementation/filenames.dart'; 26 import '../../sdk/lib/_internal/compiler/implementation/filenames.dart';
27 import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart'; 27 import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart';
28 import '../../sdk/lib/_internal/libraries.dart'; 28 import '../../sdk/lib/_internal/libraries.dart';
29 import 'package:path/path.dart' as path; 29 import 'package:path/path.dart' as path;
30 30
31 HtmlDiff _diff; 31 HtmlDiff _diff;
32 32
33 void main() { 33 void main(List<String> args) {
34 final args = new Options().arguments;
35
36 int mode = MODE_STATIC; 34 int mode = MODE_STATIC;
37 String outputDir = 'docs'; 35 String outputDir = 'docs';
38 bool generateAppCache = false; 36 bool generateAppCache = false;
39 37
40 List<String> excludedLibraries = <String>[]; 38 List<String> excludedLibraries = <String>[];
41 39
42 // For libraries that have names matching the package name, 40 // For libraries that have names matching the package name,
43 // such as library unittest in package unittest, we just give 41 // such as library unittest in package unittest, we just give
44 // the package name with a --include-lib argument, such as: 42 // the package name with a --include-lib argument, such as:
45 // --include-lib=unittest. These arguments are collected in 43 // --include-lib=unittest. These arguments are collected in
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 var memberName = '$typeName.${member.simpleName}'; 470 var memberName = '$typeName.${member.simpleName}';
473 if (member is MethodMirror && member.isConstructor) { 471 if (member is MethodMirror && member.isConstructor) {
474 final separator = member.constructorName == '' ? '' : '.'; 472 final separator = member.constructorName == '' ? '' : '.';
475 memberName = 'new $typeName$separator${member.constructorName}'; 473 memberName = 'new $typeName$separator${member.constructorName}';
476 } 474 }
477 475
478 return a(memberUrl(member), memberName); 476 return a(memberUrl(member), memberName);
479 } 477 }
480 } 478 }
481 479
OLDNEW
« no previous file with comments | « no previous file | utils/css/tool.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698