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

Unified Diff: lib/const_generator.dart

Issue 1829573002: Fix all strong mode warnings in protoc-plugin (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@master
Patch Set: regenerate pb.dart files Created 4 years, 9 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 | « bin/protoc_plugin_bazel.dart ('k') | lib/enum_generator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/const_generator.dart
diff --git a/lib/const_generator.dart b/lib/const_generator.dart
index a0833070e343609f605f281371d621e605e26f64..11b9cede362bf37bdc5e573c6f602a9c936bd4e1 100644
--- a/lib/const_generator.dart
+++ b/lib/const_generator.dart
@@ -92,10 +92,10 @@ void _writeListItems(IndentingWriter out, List val, {bool vertical: false}) {
}
}
-void _writeMapItems(IndentingWriter out, Map<String, dynamic> val,
+void _writeMapItems(IndentingWriter out, Map<dynamic, dynamic> val,
{bool vertical: false}) {
bool first = true;
- for (String key in val.keys) {
+ for (var key in val.keys) {
if (!first && !vertical) out.print(", ");
_writeString(out, key);
out.print(": ");
« no previous file with comments | « bin/protoc_plugin_bazel.dart ('k') | lib/enum_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698