Im Unify generierte TPH beachten
This commit is contained in:
parent
a8f18e77be
commit
fcbd05fa9c
@ -191,7 +191,11 @@ public class UnifyTypeFactory {
|
||||
}
|
||||
|
||||
public static Type convert(PlaceholderType t) {
|
||||
return TypePlaceholder.getInstance(t.getName());
|
||||
TypePlaceholder ret = TypePlaceholder.getInstance(t.getName());
|
||||
if(ret == null){ //Dieser TPH wurde vom Unifikationsalgorithmus erstellt
|
||||
ret = TypePlaceholder.fresh(t.getName(), NULL_NODE);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static Type convert(UnifyType t) {
|
||||
@ -206,7 +210,8 @@ public class UnifyTypeFactory {
|
||||
private static List<Type> convert(TypeParams typeParams) {
|
||||
List<Type> ret = new ArrayList<>();
|
||||
for(UnifyType uT : typeParams){
|
||||
ret.add(convert(uT));
|
||||
Type toAdd = convert(uT);
|
||||
ret.add(toAdd);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -256,8 +256,6 @@ public class RefType extends ObjectType implements IMatchable
|
||||
else paralist.add(t);
|
||||
}*/
|
||||
this.parameter = v;//paralist;
|
||||
//parserlog.debug("T->Type.java->set_ParaList->parameter: " + parameter);
|
||||
//parserlog.debug("T->Type.java->get_Type: " + getName());
|
||||
}
|
||||
// ino.end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user