analyzeImpact method

Future<ImpactAnalysisResponse> analyzeImpact({
  1. List<String>? edgeTypes,
  2. int maxDepth = 10,
})

Analyzes the impact of changes to this revision.

Returns all revisions that would be affected by changes to this revision. The response is the protobuf DTO because it contains structured counts and graph paths, but the method signature keeps the model-centric calling pattern consistent.

final impact = await revision.analyzeImpact(maxDepth: 5);
print('${impact.totalImpacted} revisions would be affected');

Implementation

Future<pb.ImpactAnalysisResponse> analyzeImpact({
  List<String>? edgeTypes,
  int maxDepth = 10,
}) async {
  return client.analyzeImpact(
    kref.uri,
    edgeTypes: edgeTypes,
    maxDepth: maxDepth,
  );
}