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

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

Issue 11280103: Splitting out the Audio library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding missing lib registrations Created 8 years 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/create_sdk.py ('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 // 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 * A script to assist in documenting the difference between the dart:html API 6 * A script to assist in documenting the difference between the dart:html API
7 * and the old DOM API. 7 * and the old DOM API.
8 */ 8 */
9 library html_diff; 9 library html_diff;
10 10
11 import 'dart:io'; 11 import 'dart:io';
12 12
13 // TODO(rnystrom): Use "package:" URL (#4968). 13 // TODO(rnystrom): Use "package:" URL (#4968).
14 import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart'; 14 import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart';
15 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'; 15 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart';
16 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dar t'; 16 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dar t';
17 17
18 // TODO(amouravski): There is currently magic that looks at dart:* libraries 18 // TODO(amouravski): There is currently magic that looks at dart:* libraries
19 // rather than the declared library names. This changed due to recent syntax 19 // rather than the declared library names. This changed due to recent syntax
20 // changes. We should only need to look at the library 'html'. 20 // changes. We should only need to look at the library 'html'.
21 const List<String> HTML_LIBRARY_NAMES = const ['dart:html', 'dart:svg']; 21 const List<String> HTML_LIBRARY_NAMES = const [
22 const List<String> HTML_DECLARED_NAMES = const ['html', 'svg']; 22 'dart:html',
23 'dart:svg',
24 'dart:web_audio'];
25 const List<String> HTML_DECLARED_NAMES = const [
26 'html',
27 'svg',
28 'web_audio'];
23 29
24 /** 30 /**
25 * A class for computing a many-to-many mapping between the types and 31 * A class for computing a many-to-many mapping between the types and
26 * members in `dart:html` and the MDN DOM types. This mapping is 32 * members in `dart:html` and the MDN DOM types. This mapping is
27 * based on two indicators: 33 * based on two indicators:
28 * 34 *
29 * 1. Auto-detected wrappers. Most `dart:html` types correspond 35 * 1. Auto-detected wrappers. Most `dart:html` types correspond
30 * straightforwardly to a single `@domName` type, and 36 * straightforwardly to a single `@domName` type, and
31 * have the same name. In addition, most `dart:html` methods 37 * have the same name. In addition, most `dart:html` methods
32 * just call a single `@domName` method. This class 38 * just call a single `@domName` method. This class
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 Map<String, String> _getTags(String comment) { 240 Map<String, String> _getTags(String comment) {
235 if (comment == null) return const <String, String>{}; 241 if (comment == null) return const <String, String>{};
236 final re = new RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)"); 242 final re = new RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)");
237 final tags = <String, String>{}; 243 final tags = <String, String>{};
238 for (var m in re.allMatches(comment.trim())) { 244 for (var m in re.allMatches(comment.trim())) {
239 tags[m[1]] = m[2]; 245 tags[m[1]] = m[2];
240 } 246 }
241 return tags; 247 return tags;
242 } 248 }
243 } 249 }
OLDNEW
« no previous file with comments | « tools/create_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698