use of org.eclipse.n4js.flowgraphs.analysis.TraverseDirection in project n4js by eclipse.
the class FlowgraphsXpectMethod method performBranchAnalysis.
private AllBranchPrintVisitor performBranchAnalysis(IEObjectCoveringRegion offset, String directionName, IEObjectCoveringRegion referenceOffset) {
EObjectCoveringRegion offsetImpl = (EObjectCoveringRegion) offset;
EObjectCoveringRegion referenceOffsetImpl = (EObjectCoveringRegion) referenceOffset;
ControlFlowElement startCFE = getCFEWithReference(offsetImpl, referenceOffsetImpl);
ControlFlowElement referenceCFE = getCFE(referenceOffset);
TraverseDirection direction = getDirection(directionName);
ControlFlowElement container = FGUtils.getCFContainer(referenceCFE);
AllBranchPrintVisitor appw = new AllBranchPrintVisitor(container, startCFE, direction);
getFlowAnalyzer(referenceCFE).accept(appw);
return appw;
}
Aggregations