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

Side by Side Diff: pkg/docgen/lib/docgen.dart

Issue 202193002: pkg/dartdoc: moving files around, fix library names (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 /// **docgen** is a tool for creating machine readable representations of Dart 5 /// **docgen** is a tool for creating machine readable representations of Dart
6 /// code metadata, including: classes, members, comments and annotations. 6 /// code metadata, including: classes, members, comments and annotations.
7 /// 7 ///
8 /// docgen is run on a `.dart` file or a directory containing `.dart` files. 8 /// docgen is run on a `.dart` file or a directory containing `.dart` files.
9 /// 9 ///
10 /// $ dart docgen.dart [OPTIONS] [FILE/DIR] 10 /// $ dart docgen.dart [OPTIONS] [FILE/DIR]
11 /// 11 ///
12 /// This creates files called `docs/<library_name>.yaml` in your current 12 /// This creates files called `docs/<library_name>.yaml` in your current
13 /// working directory. 13 /// working directory.
14 library docgen; 14 library docgen;
15 15
16 import 'dart:convert'; 16 import 'dart:convert';
17 import 'dart:io'; 17 import 'dart:io';
18 import 'dart:async'; 18 import 'dart:async';
19 19
20 import 'package:logging/logging.dart'; 20 import 'package:logging/logging.dart';
21 import 'package:markdown/markdown.dart' as markdown; 21 import 'package:markdown/markdown.dart' as markdown;
22 import 'package:path/path.dart' as path; 22 import 'package:path/path.dart' as path;
23 import 'package:yaml/yaml.dart'; 23 import 'package:yaml/yaml.dart';
24 24
25 import 'dart2yaml.dart'; 25 import 'src/dart2yaml.dart';
26 import 'src/io.dart'; 26 import 'src/io.dart';
27 import 'src/mdn.dart'; 27 import 'src/mdn.dart';
28 import 'src/models.dart'; 28 import 'src/models.dart';
29 import 'src/utils.dart'; 29 import 'src/utils.dart';
30 30
31 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 31 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
32 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'; 32 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart';
33 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro rs.dart' 33 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro rs.dart'
34 as dart2js_mirrors; 34 as dart2js_mirrors;
35 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/analyze.dart' 35 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/analyze.dart'
(...skipping 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after
2151 var annotations = []; 2151 var annotations = [];
2152 annotationMirrors.forEach((annotation) { 2152 annotationMirrors.forEach((annotation) {
2153 var docgenAnnotation = new Annotation(annotation, owningLibrary); 2153 var docgenAnnotation = new Annotation(annotation, owningLibrary);
2154 if (!_SKIPPED_ANNOTATIONS.contains( 2154 if (!_SKIPPED_ANNOTATIONS.contains(
2155 dart2js_util.qualifiedNameOf(docgenAnnotation.mirror))) { 2155 dart2js_util.qualifiedNameOf(docgenAnnotation.mirror))) {
2156 annotations.add(docgenAnnotation); 2156 annotations.add(docgenAnnotation);
2157 } 2157 }
2158 }); 2158 });
2159 return annotations; 2159 return annotations;
2160 } 2160 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698