Commit 6793aa59 authored by Sebastian Nickels's avatar Sebastian Nickels
Browse files

Fixed a small bug

parent 963eae5f
Pipeline #180028 passed with stages
in 19 minutes and 32 seconds
......@@ -39,7 +39,7 @@ public class UnrollSymbol extends ResolvableSymbol {
private ParameterSymbol timeParameter;
private SerialCompositeElementSymbol body;
private List<SerialCompositeElementSymbol> bodies = new ArrayList<>();
private ArrayList<SerialCompositeElementSymbol> bodies = new ArrayList<>();
protected UnrollSymbol(String name) {
super(name, KIND);
......@@ -58,7 +58,7 @@ public class UnrollSymbol extends ResolvableSymbol {
}
return declaration;
}
public List<SerialCompositeElementSymbol> getBodiesForAllTimesteps() {
public ArrayList<SerialCompositeElementSymbol> getBodiesForAllTimesteps() {
return bodies;
}
......@@ -265,7 +265,6 @@ public class UnrollSymbol extends ResolvableSymbol {
}
}
protected ResolvableSymbol preResolveDeepCopy() {
UnrollSymbol copy = new UnrollSymbol(getName());
if (getAstNode().isPresent()){
......@@ -278,6 +277,9 @@ public class UnrollSymbol extends ResolvableSymbol {
}
copy.setArguments(args);
copy.setTimeParameter(getTimeParameter());
copy.getTimeParameter().putInScope(copy.getSpannedScope());
copy.setBody(getBody().preResolveDeepCopy());
copy.getBody().putInScope(copy.getSpannedScope());
......
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