getFieldPointsTo method

Set<String> getFieldPointsTo(
  1. String heapId,
  2. String fieldName
)

Gets what a heap object's field points to.

Implementation

Set<String> getFieldPointsTo(String heapId, String fieldName) {
  final results = _engine.query('HeapPointsTo');
  return results
      .where((tuple) => tuple[0] == heapId && tuple[1] == fieldName)
      .map((tuple) => tuple[2] as String)
      .toSet();
}