We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8cce35 commit 65b9109Copy full SHA for 65b9109
runtime/tools/dartfuzz/dartfuzz.dart
@@ -1085,13 +1085,7 @@ class DartFuzz {
1085
if (DartType.isMapType(tp)) {
1086
// Emit construct for the map key type.
1087
final indexType = dartType.indexType(tp);
1088
- // This check determines whether we are emitting a global variable.
1089
- // I.e. whenever we are not currently emitting part of a class.
1090
- if (currentMethod != null) {
1091
- emitExpr(depth, indexType, rhsFilter: rhsFilter);
1092
- } else {
1093
- emitLiteral(depth, indexType, rhsFilter: rhsFilter);
1094
- }
+ emitElementExpr(depth, indexType, rhsFilter: rhsFilter);
1095
emit(' : ');
1096
// Emit construct for the map value type.
1097
emitElementExpr(depth, elementType, rhsFilter: rhsFilter);
0 commit comments