Skip to content

Commit

Permalink
Make _MAP_PROPERTIES a Set rather than a List
Browse files Browse the repository at this point in the history
Reminded about this by Kasper Lund’s dart-archive#614.
  • Loading branch information
chalin committed Feb 25, 2014
1 parent 5e28c72 commit 00a711f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/parser/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ setKeyed(object, key, value) {
return value;
}

final List<String> _MAP_PROPERTIES = const <String>[
final Set<String> _MAP_PROPERTIES = new Set<String>.from([
"hashCode", // any reason to exclude this?
"isEmpty",
"isNotEmpty",
"keys",
"length",
"runtimeType", // any reason to exclude this?
"values"];
"values"]);
bool isMapProperty(String key) => _MAP_PROPERTIES.contains(key);

0 comments on commit 00a711f

Please sign in to comment.