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

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

Issue 15643004: Fix breakages from r23266 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 6 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 | « tests/compiler/dart2js/mirrors_test.dart ('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:async'; 11 import 'dart:async';
12 import 'dart:io'; 12 import 'dart:io';
13 13
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/compiler/implementation/mirrors/dart2js_mirror.d art'; 17 import '../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.d art';
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 import '../../sdk/lib/_internal/compiler/implementation/source_file_provider.dar t'; 20 import '../../sdk/lib/_internal/compiler/implementation/source_file_provider.dar t';
21 import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart'; 21 import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart';
22 import '../../sdk/lib/html/html_common/metadata.dart'; 22 import '../../sdk/lib/html/html_common/metadata.dart';
23 23
24 // TODO(amouravski): There is currently magic that looks at dart:* libraries 24 // TODO(amouravski): There is currently magic that looks at dart:* libraries
25 // rather than the declared library names. This changed due to recent syntax 25 // rather than the declared library names. This changed due to recent syntax
26 // changes. We should only need to look at the library 'html'. 26 // changes. We should only need to look at the library 'html'.
27 List<Uri> HTML_LIBRARY_URIS = [ 27 final List<Uri> HTML_LIBRARY_URIS = [
28 new Uri(scheme: 'dart', path: 'html'), 28 new Uri(scheme: 'dart', path: 'html'),
29 new Uri(scheme: 'dart', path: 'indexed_db'), 29 new Uri(scheme: 'dart', path: 'indexed_db'),
30 new Uri(scheme: 'dart', path: 'svg'), 30 new Uri(scheme: 'dart', path: 'svg'),
31 new Uri(scheme: 'dart', path: 'web_audio')]; 31 new Uri(scheme: 'dart', path: '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 *
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 return members; 224 return members;
225 } 225 }
226 226
227 if (name.split('.').length != 2) { 227 if (name.split('.').length != 2) {
228 warn('invalid member name ${name}'); 228 warn('invalid member name ${name}');
229 return new Set(); 229 return new Set();
230 } 230 }
231 return new Set.from([name]); 231 return new Set.from([name]);
232 } 232 }
233 } 233 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mirrors_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698