Chromium Code Reviews

Unified 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.
Jump to:
View side-by-side diff with in-line comments
Index: utils/apidoc/html_diff.dart
===================================================================
--- utils/apidoc/html_diff.dart (revision 10854)
+++ utils/apidoc/html_diff.dart (working copy)
@@ -279,9 +279,9 @@
* At time of writing, the only tag that's used is `@domName`.
*/
Map<String, String> _getTags(String comment) {
- if (comment == null) return const <String>{};
+ if (comment == null) return const <String, String>{};
final re = const RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)");
- final tags = <String>{};
+ final tags = <String, String>{};
for (var m in re.allMatches(comment.trim())) {
tags[m[1]] = m[2];
}

Powered by Google App Engine