Search in sources :

Example 1 with Stop_Execution_Statement

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);
        }
    }
}
Also used : Definition(org.eclipse.titan.designer.AST.TTCN3.definitions.Definition) Stop_Execution_Statement(org.eclipse.titan.designer.AST.TTCN3.statements.Stop_Execution_Statement) StatementBlock(org.eclipse.titan.designer.AST.TTCN3.statements.StatementBlock) Def_Function(org.eclipse.titan.designer.AST.TTCN3.definitions.Def_Function)

Aggregations

Def_Function (org.eclipse.titan.designer.AST.TTCN3.definitions.Def_Function)1 Definition (org.eclipse.titan.designer.AST.TTCN3.definitions.Definition)1 StatementBlock (org.eclipse.titan.designer.AST.TTCN3.statements.StatementBlock)1 Stop_Execution_Statement (org.eclipse.titan.designer.AST.TTCN3.statements.Stop_Execution_Statement)1