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

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

Issue 12061008: Renaming dart:html library from 'html' to 'dart.html' (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/templates/html/impl/impl_XMLHttpRequest.darttemplate ('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 import 'dart:async'; 12 import 'dart:async';
13 import '../../sdk/lib/html/html_common/metadata.dart'; 13 import '../../sdk/lib/html/html_common/metadata.dart';
14 import 'lib/metadata.dart'; 14 import 'lib/metadata.dart';
15 15
16 // TODO(rnystrom): Use "package:" URL (#4968). 16 // TODO(rnystrom): Use "package:" URL (#4968).
17 import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart'; 17 import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart';
18 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'; 18 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart';
19 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dar t'; 19 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dar t';
20 20
21 // TODO(amouravski): There is currently magic that looks at dart:* libraries 21 // TODO(amouravski): There is currently magic that looks at dart:* libraries
22 // rather than the declared library names. This changed due to recent syntax 22 // rather than the declared library names. This changed due to recent syntax
23 // changes. We should only need to look at the library 'html'. 23 // changes. We should only need to look at the library 'html'.
24 const List<String> HTML_LIBRARY_NAMES = const [ 24 const List<String> HTML_LIBRARY_NAMES = const [
25 'dart:html', 25 'dart:html',
26 'dart:svg', 26 'dart:svg',
27 'dart:web_audio']; 27 'dart:web_audio'];
28 const List<String> HTML_DECLARED_NAMES = const [ 28 const List<String> HTML_DECLARED_NAMES = const [
29 'html', 29 'dart.dom.html',
30 'svg', 30 'dart.dom.svg',
31 'web_audio']; 31 'dart.dom.web_audio'];
32 32
33 /** 33 /**
34 * A class for computing a many-to-many mapping between the types and 34 * A class for computing a many-to-many mapping between the types and
35 * members in `dart:html` and the MDN DOM types. This mapping is 35 * members in `dart:html` and the MDN DOM types. This mapping is
36 * based on two indicators: 36 * based on two indicators:
37 * 37 *
38 * 1. Auto-detected wrappers. Most `dart:html` types correspond 38 * 1. Auto-detected wrappers. Most `dart:html` types correspond
39 * straightforwardly to a single `@DomName` type, and 39 * straightforwardly to a single `@DomName` type, and
40 * have the same name. In addition, most `dart:html` methods 40 * have the same name. In addition, most `dart:html` methods
41 * just call a single `@DomName` method. This class 41 * just call a single `@DomName` method. This class
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 defaultTypes.forEach((t) { members.add('$t.$name'); }); 227 defaultTypes.forEach((t) { members.add('$t.$name'); });
228 return members; 228 return members;
229 } 229 }
230 230
231 if (name.split('.').length != 2) { 231 if (name.split('.').length != 2) {
232 warn('invalid member name ${name}'); 232 warn('invalid member name ${name}');
233 return new Set(); 233 return new Set();
234 } 234 }
235 return new Set.from([name]); 235 return new Set.from([name]);
236 } 236 }
237 } 237 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698