OLD | NEW |
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 | 12 |
13 import 'lib/metadata.dart'; | 13 import 'lib/metadata.dart'; |
14 | 14 |
15 // TODO(rnystrom): Use "package:" URL (#4968). | 15 // TODO(rnystrom): Use "package:" URL (#4968). |
16 import '../../pkg/compiler/lib/src/mirrors/analyze.dart'; | 16 import '../../sdk/lib/_internal/compiler/implementation/mirrors/analyze.dart'; |
17 import '../../pkg/compiler/lib/src/mirrors/source_mirrors.dart'; | 17 import '../../sdk/lib/_internal/compiler/implementation/mirrors/source_mirrors.d
art'; |
18 import '../../pkg/compiler/lib/src/mirrors/mirrors_util.dart'; | 18 import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dar
t'; |
19 import '../../pkg/compiler/lib/src/source_file_provider.dart'; | 19 import '../../sdk/lib/_internal/compiler/implementation/source_file_provider.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 final List<Uri> HTML_LIBRARY_URIS = [ | 24 final List<Uri> HTML_LIBRARY_URIS = [ |
25 new Uri(scheme: 'dart', path: 'html'), | 25 new Uri(scheme: 'dart', path: 'html'), |
26 new Uri(scheme: 'dart', path: 'indexed_db'), | 26 new Uri(scheme: 'dart', path: 'indexed_db'), |
27 new Uri(scheme: 'dart', path: 'svg'), | 27 new Uri(scheme: 'dart', path: 'svg'), |
28 new Uri(scheme: 'dart', path: 'web_audio')]; | 28 new Uri(scheme: 'dart', path: 'web_audio')]; |
29 | 29 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 return members; | 222 return members; |
223 } | 223 } |
224 | 224 |
225 if (name.split('.').length != 2) { | 225 if (name.split('.').length != 2) { |
226 warn('invalid member name ${name}'); | 226 warn('invalid member name ${name}'); |
227 return new Set(); | 227 return new Set(); |
228 } | 228 } |
229 return new Set.from([name]); | 229 return new Set.from([name]); |
230 } | 230 } |
231 } | 231 } |
OLD | NEW |