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

Side by Side Diff: tools/dom/docs/lib/docs.dart

Issue 12334086: Added Web SQL to the docs.json generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « tools/dom/docs/docs.json ('k') | 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 /** 1 /**
2 * A library for extracting the documentation from the various HTML libraries 2 * A library for extracting the documentation from the various HTML libraries
3 * ([dart:html], [dart:svg], [dart:web_audio], [dart:indexed_db]) and saving 3 * ([dart:html], [dart:svg], [dart:web_audio], [dart:indexed_db]) and saving
4 * those documentation comments to a JSON file. 4 * those documentation comments to a JSON file.
5 */ 5 */
6 6
7 library docs; 7 library docs;
8 8
9 import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.da rt'; 9 import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.da rt';
10 import '../../../../sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart'; 10 import '../../../../sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart';
11 import '../../../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart'; 11 import '../../../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart';
12 import '../../../../utils/apidoc/lib/metadata.dart'; 12 import '../../../../utils/apidoc/lib/metadata.dart';
13 import 'dart:async'; 13 import 'dart:async';
14 import 'dart:io'; 14 import 'dart:io';
15 15
16 /// The various HTML libraries. 16 /// The various HTML libraries.
17 const List<String> HTML_LIBRARY_NAMES = const ['dart:html', 17 const List<String> HTML_LIBRARY_NAMES = const ['dart:html',
18 'dart:indexed_db',
18 'dart:svg', 19 'dart:svg',
19 'dart:web_audio', 20 'dart:web_audio',
20 'dart:indexed_db']; 21 'dart:web_sql'];
21 /** 22 /**
22 * Converts the libraries in [HTML_LIBRARY_NAMES] to a json file at [jsonPath] 23 * Converts the libraries in [HTML_LIBRARY_NAMES] to a json file at [jsonPath]
23 * given the library path at [libPath]. 24 * given the library path at [libPath].
24 * 25 *
25 * The json output looks like: 26 * The json output looks like:
26 * { 27 * {
27 * $library_name: { 28 * $library_name: {
28 * $interface_name: { 29 * $interface_name: {
29 * comment: "$comment" 30 * comment: "$comment"
30 * members: { 31 * members: {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 var tags = deprecatedFutureValue(domNameMetadata.getField('name')); 179 var tags = deprecatedFutureValue(domNameMetadata.getField('name'));
179 for (var s in tags.reflectee.split(',')) { 180 for (var s in tags.reflectee.split(',')) {
180 domNames.add(s.trim()); 181 domNames.add(s.trim());
181 } 182 }
182 183
183 if (domNames.length == 1 && domNames[0] == 'none') return <String>[]; 184 if (domNames.length == 1 && domNames[0] == 'none') return <String>[];
184 return domNames; 185 return domNames;
185 } else { 186 } else {
186 return <String>[]; 187 return <String>[];
187 } 188 }
188 } 189 }
OLDNEW
« no previous file with comments | « tools/dom/docs/docs.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698