use of org.eclipse.titan.designer.AST.TTCN3.statements.Stop_Execution_Statement in project titan.EclipsePlug-ins by eclipse.
the class StopInFunction method process.
@Override
public void process(final IVisitableNode node, final Problems problems) {
if (node instanceof Stop_Execution_Statement) {
final Stop_Execution_Statement s = (Stop_Execution_Statement) node;
final StatementBlock sb = s.getMyStatementBlock();
final Definition d = sb.getMyDefinition();
if (d instanceof Def_Function) {
problems.report(s.getLocation(), ERROR_MESSAGE);
}
}
}
Aggregations