Skip to content
Snippets Groups Projects
Commit 553a90ba authored by Jan Gruteser's avatar Jan Gruteser
Browse files

delete AbstractSymbol

has not been used for a long time
parent a3dd3335
No related branches found
No related tags found
No related merge requests found
Pipeline #148677 passed
...@@ -45,8 +45,6 @@ public abstract class AbstractHasFollowers extends TLAType { ...@@ -45,8 +45,6 @@ public abstract class AbstractHasFollowers extends TLAType {
if (newType instanceof AbstractHasFollowers) { if (newType instanceof AbstractHasFollowers) {
((AbstractHasFollowers) newType).addFollower(follower); ((AbstractHasFollowers) newType).addFollower(follower);
} }
} else if (follower instanceof AbstractSymbol) {
((AbstractSymbol) follower).setType(newType);
} else if (follower instanceof SetType) { } else if (follower instanceof SetType) {
((SetType) follower).setSubType(newType); ((SetType) follower).setSubType(newType);
} else if (follower instanceof TupleType) { } else if (follower instanceof TupleType) {
......
package de.tla2b.types;
public abstract class AbstractSymbol {
private TLAType type;
public AbstractSymbol(TLAType t) {
setType(t);
}
public TLAType getType() {
return type;
}
protected void setType(TLAType t) {
this.type = t;
if (type instanceof AbstractHasFollowers) {
AbstractHasFollowers p = (AbstractHasFollowers) t;
p.addFollower(this);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment