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

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

Issue 690103004: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « tools/dom/docs/lib/docs.dart ('k') | utils/apidoc/html_diff.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 *
11 * Usage: 11 * Usage:
12 * 12 *
13 * $ dart apidoc.dart [--out=<output directory>] 13 * $ dart apidoc.dart [--out=<output directory>]
14 */ 14 */
15 library apidoc; 15 library apidoc;
16 16
17 import 'dart:async'; 17 import 'dart:async';
18 import 'dart:convert'; 18 import 'dart:convert';
19 import 'dart:io'; 19 import 'dart:io';
20 20
21 import 'html_diff.dart'; 21 import 'html_diff.dart';
22 22
23 // TODO(rnystrom): Use "package:" URL (#4968). 23 // TODO(rnystrom): Use "package:" URL (#4968).
24 import '../../sdk/lib/_internal/compiler/implementation/mirrors/source_mirrors.d art'; 24 import '../../pkg/compiler/lib/src/mirrors/source_mirrors.dart';
25 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dar t'; 25 import '../../pkg/compiler/lib/src/mirrors/mirrors_util.dart';
26 import '../../sdk/lib/_internal/compiler/implementation/filenames.dart'; 26 import '../../pkg/compiler/lib/src/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(List<String> args) { 33 void main(List<String> args) {
34 int mode = MODE_STATIC; 34 int mode = MODE_STATIC;
35 String outputDir = 'docs'; 35 String outputDir = 'docs';
36 bool generateAppCache = false; 36 bool generateAppCache = false;
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 var memberName = '$typeName.${member.simpleName}'; 469 var memberName = '$typeName.${member.simpleName}';
470 if (member is MethodMirror && member.isConstructor) { 470 if (member is MethodMirror && member.isConstructor) {
471 final separator = member.constructorName == '' ? '' : '.'; 471 final separator = member.constructorName == '' ? '' : '.';
472 memberName = 'new $typeName$separator${member.constructorName}'; 472 memberName = 'new $typeName$separator${member.constructorName}';
473 } 473 }
474 474
475 return a(memberUrl(member), memberName); 475 return a(memberUrl(member), memberName);
476 } 476 }
477 } 477 }
478 478
OLDNEW
« no previous file with comments | « tools/dom/docs/lib/docs.dart ('k') | utils/apidoc/html_diff.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698