Commit f43d075b authored by Malte Heithoff's avatar Malte Heithoff

Reset subcomponent packageNames

parent 089117d8
Pipeline #392544 passed with stage
in 2 minutes and 52 seconds
......@@ -674,7 +674,7 @@ public class EMAComponentInstanceBuilder {
subComponents.stream().forEach(s -> {
String newPackageName = Joiners.DOT.join(packageName, name.get());
s.setPackageName(newPackageName);
s.setFullName(Joiners.DOT.join(newPackageName, s.getName()));
s.resetFullNames();
});
}
}
......@@ -11,6 +11,7 @@ import de.monticore.lang.monticar.resolution._ast.ASTUnitNumberResolution;
import de.monticore.lang.monticar.si._symboltable.ResolutionDeclarationSymbol;
import de.monticore.symboltable.CommonScopeSpanningSymbol;
import de.monticore.symboltable.types.references.ActualTypeArgument;
import de.se_rwth.commons.Joiners;
import java.util.*;
import java.util.stream.Collectors;
......@@ -352,4 +353,12 @@ public class EMAComponentInstanceSymbol
public boolean isDirectFeedThrough() {
return !isNonDirectFeedThrough();
}
public void resetFullNames() {
setFullName(Joiners.DOT.join(this.getPackageName(), this.getName()));
for (EMAComponentInstanceSymbol subComponent : getSubComponents()) {
subComponent.setPackageName(getFullName());
subComponent.resetFullNames();
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment