refsForGroup static method
Returns every token whose current groupId equals groupId.
Used by tests to verify disposeGroup semantics; production code should look up by token, not iterate.
Implementation
static List<String> refsForGroup(String groupId) {
final List<String> out = <String>[];
for (final MapEntry<String, RefEntry> entry in _entries.entries) {
if (entry.value.groupId == groupId) {
out.add(entry.key);
}
}
return List<String>.unmodifiable(out);
}