use of org.eclipse.titan.designer.AST.NamedBridgeScope in project titan.EclipsePlug-ins by eclipse.
the class Def_Type method setMyScope.
@Override
public /**
* {@inheritDoc}
*/
void setMyScope(final Scope scope) {
if (bridgeScope != null && bridgeScope.getParentScope() == scope) {
return;
}
bridgeScope = new NamedBridgeScope();
bridgeScope.setParentScope(scope);
scope.addSubScope(getLocation(), bridgeScope);
bridgeScope.setScopeMacroName(identifier.getDisplayName());
super.setMyScope(bridgeScope);
if (type != null) {
type.setMyScope(bridgeScope);
}
}
use of org.eclipse.titan.designer.AST.NamedBridgeScope in project titan.EclipsePlug-ins by eclipse.
the class Def_Altstep method setMyScope.
@Override
public /**
* {@inheritDoc}
*/
void setMyScope(final Scope scope) {
if (bridgeScope != null && bridgeScope.getParentScope() == scope) {
return;
}
bridgeScope = new NamedBridgeScope();
bridgeScope.setParentScope(scope);
scope.addSubScope(getLocation(), bridgeScope);
bridgeScope.setScopeMacroName(identifier.getDisplayName());
super.setMyScope(bridgeScope);
if (runsOnRef != null) {
runsOnRef.setMyScope(bridgeScope);
}
formalParList.setMyScope(bridgeScope);
if (block != null) {
block.setMyScope(formalParList);
altGuards.setMyScope(block);
bridgeScope.addSubScope(block.getLocation(), block);
}
bridgeScope.addSubScope(formalParList.getLocation(), formalParList);
if (altGuards != null) {
for (int i = 0; i < altGuards.getNofAltguards(); i++) {
final AltGuard ag = altGuards.getAltguardByIndex(i);
final StatementBlock sb = ag.getStatementBlock();
if (sb != null) {
bridgeScope.addSubScope(sb.getLocation(), sb);
}
}
}
}
Aggregations