Commit 4073d708 authored by Miklos Magyari's avatar Miklos Magyari
Browse files

Fix for new instance of a reference to be the same type as the original one


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent ee60d316
...@@ -157,10 +157,15 @@ public class Reference extends ASTNode implements ILocateableNode, IIncrementall ...@@ -157,10 +157,15 @@ public class Reference extends ASTNode implements ILocateableNode, IIncrementall
subReferences.get(i).setFullNameParent(this); subReferences.get(i).setFullNameParent(this);
} }
} }
public Reference(final Identifier modid, Ref_Type reftype, final List<ISubReference> subReferences) {
this(modid, subReferences);
this.reftype = reftype;
}
/** @return a new instance of this reference */ /** @return a new instance of this reference */
public Reference newInstance() { public Reference newInstance() {
return new Reference(modid, subReferences); return new Reference(modid, reftype, subReferences);
} }
/** /**
......
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