Skip to content

Commit 00a711f

Browse files
committed
Make _MAP_PROPERTIES a Set rather than a List
Reminded about this by Kasper Lund’s dart-archive#614.
1 parent 5e28c72 commit 00a711f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core/parser/utils.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ setKeyed(object, key, value) {
9797
return value;
9898
}
9999

100-
final List<String> _MAP_PROPERTIES = const <String>[
100+
final Set<String> _MAP_PROPERTIES = new Set<String>.from([
101101
"hashCode", // any reason to exclude this?
102102
"isEmpty",
103103
"isNotEmpty",
104104
"keys",
105105
"length",
106106
"runtimeType", // any reason to exclude this?
107-
"values"];
107+
"values"]);
108108
bool isMapProperty(String key) => _MAP_PROPERTIES.contains(key);

0 commit comments

Comments
 (0)