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

Unified Diff: packages/html/lib/src/tokenizer.dart

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/html/lib/src/query_selector.dart ('k') | packages/html/lib/src/treebuilder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/html/lib/src/tokenizer.dart
diff --git a/packages/html/lib/src/tokenizer.dart b/packages/html/lib/src/tokenizer.dart
index 3273858fa0d9466eb574814da0b650c37e90ca75..68cb6dcd1b25e6489a0fcb9b3bb87d315d759798 100644
--- a/packages/html/lib/src/tokenizer.dart
+++ b/packages/html/lib/src/tokenizer.dart
@@ -12,7 +12,7 @@ import 'utils.dart';
// TODO(jmesserly): we could use a better data structure here like a trie, if
// we had it implemented in Dart.
Map<String, List<String>> entitiesByFirstChar = (() {
- var result = {};
+ var result = <String, List<String>>{};
for (var k in entities.keys) {
result.putIfAbsent(k[0], () => []).add(k);
}
« no previous file with comments | « packages/html/lib/src/query_selector.dart ('k') | packages/html/lib/src/treebuilder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698