Search in sources :

Example 21 with IIncrementallyUpdateable

use of org.eclipse.titan.designer.AST.TTCN3.IIncrementallyUpdateable in project titan.EclipsePlug-ins by eclipse.

the class Call_Statement method updateSyntax.

@Override
public /**
 * {@inheritDoc}
 */
void updateSyntax(final TTCN3ReparseUpdater reparser, final boolean isDamaged) throws ReParseException {
    if (isDamaged) {
        throw new ReParseException();
    }
    if (portReference != null) {
        portReference.updateSyntax(reparser, false);
        reparser.updateLocation(portReference.getLocation());
    }
    if (parameter != null) {
        parameter.updateSyntax(reparser, false);
        reparser.updateLocation(parameter.getLocation());
    }
    if (timerValue != null) {
        timerValue.updateSyntax(reparser, false);
        reparser.updateLocation(timerValue.getLocation());
    }
    if (toClause instanceof IIncrementallyUpdateable) {
        ((IIncrementallyUpdateable) toClause).updateSyntax(reparser, false);
        reparser.updateLocation(toClause.getLocation());
    } else if (toClause != null) {
        throw new ReParseException();
    }
    if (altGuards != null) {
        altGuards.updateSyntax(reparser, false);
        reparser.updateLocation(altGuards.getLocation());
    }
}
Also used : IIncrementallyUpdateable(org.eclipse.titan.designer.AST.TTCN3.IIncrementallyUpdateable) ReParseException(org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException)

Aggregations

IIncrementallyUpdateable (org.eclipse.titan.designer.AST.TTCN3.IIncrementallyUpdateable)21 ReParseException (org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException)21 IType (org.eclipse.titan.designer.AST.IType)1 IValue (org.eclipse.titan.designer.AST.IValue)1