getAllFieldsPointsTo method
Gets all fields of a heap object and what they point to.
Implementation
Map<String, Set<String>> getAllFieldsPointsTo(String heapId) {
final results = _engine.query('HeapPointsTo');
final map = <String, Set<String>>{};
for (final tuple in results) {
if (tuple[0] == heapId) {
final field = tuple[1] as String;
final target = tuple[2] as String;
map.putIfAbsent(field, () => {}).add(target);
}
}
return map;
}