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

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

Issue 11358024: Changes outside pkg/ and lib/ for directory refactoring (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
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:coreimpl'); 11 import 'dart:coreimpl';
12 #import('dart:io'); 12 import 'dart:io';
13 13
14 // TODO(rnystrom): Use "package:" URL (#4968). 14 // TODO(rnystrom): Use "package:" URL (#4968).
15 #import('../../pkg/dartdoc/lib/dartdoc.dart'); 15 import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart';
16 #import('../../pkg/dartdoc/lib/mirrors.dart'); 16 import '../../sdk/lib/_internal/dartdoc/lib/mirrors.dart';
17 #import('../../pkg/dartdoc/lib/mirrors_util.dart'); 17 import '../../sdk/lib/_internal/dartdoc/lib/mirrors_util.dart';
18 18
19 // TODO(amouravski): There is currently magic that looks at dart:* libraries 19 // TODO(amouravski): There is currently magic that looks at dart:* libraries
20 // rather than the declared library names. This changed due to recent syntax 20 // rather than the declared library names. This changed due to recent syntax
21 // changes. We should only need to look at the library 'html'. 21 // changes. We should only need to look at the library 'html'.
22 const HTML_LIBRARY_NAME = 'dart:html'; 22 const HTML_LIBRARY_NAME = 'dart:html';
23 const HTML_DECLARED_NAME = 'html'; 23 const HTML_DECLARED_NAME = 'html';
24 24
25 /** 25 /**
26 * A class for computing a many-to-many mapping between the types and 26 * A class for computing a many-to-many mapping between the types and
27 * members in `dart:html` and the MDN DOM types. This mapping is 27 * members in `dart:html` and the MDN DOM types. This mapping is
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 Map<String, String> _getTags(String comment) { 229 Map<String, String> _getTags(String comment) {
230 if (comment == null) return const <String, String>{}; 230 if (comment == null) return const <String, String>{};
231 final re = const RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)"); 231 final re = const RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)");
232 final tags = <String, String>{}; 232 final tags = <String, String>{};
233 for (var m in re.allMatches(comment.trim())) { 233 for (var m in re.allMatches(comment.trim())) {
234 tags[m[1]] = m[2]; 234 tags[m[1]] = m[2];
235 } 235 }
236 return tags; 236 return tags;
237 } 237 }
238 } 238 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698