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

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

Issue 68133010: Add back Reflectable annotations. (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 | 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) 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]
(...skipping 23 matching lines...) Expand all
34 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart'; 34 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart';
35 import '../../../sdk/lib/_internal/libraries.dart'; 35 import '../../../sdk/lib/_internal/libraries.dart';
36 36
37 var logger = new Logger('Docgen'); 37 var logger = new Logger('Docgen');
38 38
39 const String USAGE = 'Usage: dart docgen.dart [OPTIONS] fooDir/barFile'; 39 const String USAGE = 'Usage: dart docgen.dart [OPTIONS] fooDir/barFile';
40 40
41 41
42 List<String> skippedAnnotations = const [ 42 List<String> skippedAnnotations = const [
43 'metadata.DocsEditable', '_js_helper.JSName', '_js_helper.Creates', 43 'metadata.DocsEditable', '_js_helper.JSName', '_js_helper.Creates',
44 '_js_helper.Returns', 'observe-src-metadata.Reflectable']; 44 '_js_helper.Returns'];
45 45
46 /// Set of libraries declared in the SDK, so libraries that can be accessed 46 /// Set of libraries declared in the SDK, so libraries that can be accessed
47 /// when running dart by default. 47 /// when running dart by default.
48 Iterable<LibraryMirror> _sdkLibraries; 48 Iterable<LibraryMirror> _sdkLibraries;
49 49
50 /// The dart:core library, which contains all types that are always available 50 /// The dart:core library, which contains all types that are always available
51 /// without import. 51 /// without import.
52 LibraryMirror _coreLibrary; 52 LibraryMirror _coreLibrary;
53 53
54 /// Current library being documented to be used for comment links. 54 /// Current library being documented to be used for comment links.
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 /// Remove statics from the map of inherited items before adding them. 1396 /// Remove statics from the map of inherited items before adding them.
1397 Map _filterStatics(Map items) { 1397 Map _filterStatics(Map items) {
1398 var result = {}; 1398 var result = {};
1399 items.forEach((name, item) { 1399 items.forEach((name, item) {
1400 if (!item.isStatic) { 1400 if (!item.isStatic) {
1401 result[name] = item; 1401 result[name] = item;
1402 } 1402 }
1403 }); 1403 });
1404 return result; 1404 return result;
1405 } 1405 }
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