use of org.eclipse.titan.designer.AST.TTCN3.IIncrementallyUpdateable in project titan.EclipsePlug-ins by eclipse.
the class Referenced_Template method updateSyntax.
@Override
public /**
* {@inheritDoc}
*/
void updateSyntax(final TTCN3ReparseUpdater reparser, final boolean isDamaged) throws ReParseException {
if (isDamaged) {
throw new ReParseException();
}
if (lengthRestriction != null) {
lengthRestriction.updateSyntax(reparser, false);
reparser.updateLocation(lengthRestriction.getLocation());
}
if (baseTemplate instanceof IIncrementallyUpdateable) {
((IIncrementallyUpdateable) baseTemplate).updateSyntax(reparser, false);
reparser.updateLocation(baseTemplate.getLocation());
} else if (baseTemplate != null) {
throw new ReParseException();
}
if (reference != null) {
reference.updateSyntax(reparser, false);
reparser.updateLocation(reference.getLocation());
}
}
use of org.eclipse.titan.designer.AST.TTCN3.IIncrementallyUpdateable in project titan.EclipsePlug-ins by eclipse.
the class Raise_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 (signatureReference != null) {
signatureReference.updateSyntax(reparser, false);
reparser.updateLocation(signatureReference.getLocation());
}
if (parameter != null) {
parameter.updateSyntax(reparser, false);
reparser.updateLocation(parameter.getLocation());
}
if (toClause instanceof IIncrementallyUpdateable) {
((IIncrementallyUpdateable) toClause).updateSyntax(reparser, false);
reparser.updateLocation(toClause.getLocation());
} else if (toClause != null) {
throw new ReParseException();
}
}
use of org.eclipse.titan.designer.AST.TTCN3.IIncrementallyUpdateable in project titan.EclipsePlug-ins by eclipse.
the class Stop_Component_Statement method updateSyntax.
@Override
public /**
* {@inheritDoc}
*/
void updateSyntax(final TTCN3ReparseUpdater reparser, final boolean isDamaged) throws ReParseException {
if (isDamaged) {
throw new ReParseException();
}
if (componentReference instanceof IIncrementallyUpdateable) {
((IIncrementallyUpdateable) componentReference).updateSyntax(reparser, false);
reparser.updateLocation(componentReference.getLocation());
} else if (componentReference != null) {
throw new ReParseException();
}
}
use of org.eclipse.titan.designer.AST.TTCN3.IIncrementallyUpdateable in project titan.EclipsePlug-ins by eclipse.
the class Reply_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 (replyValue != null) {
replyValue.updateSyntax(reparser, false);
reparser.updateLocation(replyValue.getLocation());
}
if (toClause instanceof IIncrementallyUpdateable) {
((IIncrementallyUpdateable) toClause).updateSyntax(reparser, false);
reparser.updateLocation(toClause.getLocation());
} else if (toClause != null) {
throw new ReParseException();
}
}
use of org.eclipse.titan.designer.AST.TTCN3.IIncrementallyUpdateable in project titan.EclipsePlug-ins by eclipse.
the class Send_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 (toClause instanceof IIncrementallyUpdateable) {
((IIncrementallyUpdateable) toClause).updateSyntax(reparser, false);
reparser.updateLocation(toClause.getLocation());
} else if (toClause != null) {
throw new ReParseException();
}
}
Aggregations