use of org.eclipse.titan.designer.AST.TTCN3.statements.If_Clause in project titan.EclipsePlug-ins by eclipse.
the class ContainsRef method visit.
@Override
public int visit(final IVisitableNode node) {
if (node instanceof If_Statement) {
final List<If_Clause> ifs = ((If_Statement) node).getIfClauses().getClauses();
for (final If_Clause clause : ifs) {
final Value cond = clause.getExpression();
if (cond != null) {
final RefUsedInMatching mv = new RefUsedInMatching(redirectValue);
cond.accept(mv);
if (mv.getUsed()) {
smells = true;
suspicious = clause;
}
}
}
return V_SKIP;
}
return V_CONTINUE;
}
Aggregations