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

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

Issue 10854191: Require two type arguments for map literals (issue 4522). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/standalone/io/mime_multipart_parser_test.dart ('k') | utils/apidoc/html_diff_dump.dart » ('j') | 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
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 /** 273 /**
274 * Extracts a [Map] from tag names to values from [comment], which is parsed 274 * Extracts a [Map] from tag names to values from [comment], which is parsed
275 * from a Dart source file via dartdoc. Tags are of the form `@NAME VALUE`, 275 * from a Dart source file via dartdoc. Tags are of the form `@NAME VALUE`,
276 * where `NAME` is alphabetic and `VALUE` can contain any character other than 276 * where `NAME` is alphabetic and `VALUE` can contain any character other than
277 * `;`. Multiple tags can be separated by semicolons. 277 * `;`. Multiple tags can be separated by semicolons.
278 * 278 *
279 * At time of writing, the only tag that's used is `@domName`. 279 * At time of writing, the only tag that's used is `@domName`.
280 */ 280 */
281 Map<String, String> _getTags(String comment) { 281 Map<String, String> _getTags(String comment) {
282 if (comment == null) return const <String>{}; 282 if (comment == null) return const <String, String>{};
283 final re = const RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)"); 283 final re = const RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)");
284 final tags = <String>{}; 284 final tags = <String, String>{};
285 for (var m in re.allMatches(comment.trim())) { 285 for (var m in re.allMatches(comment.trim())) {
286 tags[m[1]] = m[2]; 286 tags[m[1]] = m[2];
287 } 287 }
288 return tags; 288 return tags;
289 } 289 }
290 } 290 }
OLDNEW
« no previous file with comments | « tests/standalone/io/mime_multipart_parser_test.dart ('k') | utils/apidoc/html_diff_dump.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698