Skip to content

Commit

Permalink
Remove duplicate keys in dartfuzz_api_table
Browse files Browse the repository at this point in the history
Duplications introduced in
cfa03ed

Change-Id: I9720822611aacefb9b1538d9fc59e234f96475bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321842
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
  • Loading branch information
srawlins authored and Commit Queue committed Aug 21, 2023
1 parent 7b6d9fb commit c0dd7a0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions runtime/tools/dartfuzz/gen_api_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,11 @@ final Map<String, String> typeToLibraryMethodsListName = () {
unsupportedErrorEncoding: unsupportedErrorLibs,
voidEncoding: voidLibs,
};
var result = <String, String>{};
encodings.forEach((key, value) {
result[key] = value;
result[key + "_NULLABLE"] = value + "Nullable";
});
return result;
return {
for (var MapEntry(:key, :value) in encodings.entries) key: value,
for (var MapEntry(:key, :value) in encodings.entries)
if (key != voidEncoding) '${key}_NULLABLE': '${value}Nullable',
};
}();

// Map from return type encoding to list of recognized methods with that
Expand Down

0 comments on commit c0dd7a0

Please sign in to comment.