modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java

This commit is contained in:
pl@gohorb.ba-horb.de 2023-03-21 10:30:13 +01:00
parent 9d7e46925d
commit 070dd16999

View File

@ -199,8 +199,7 @@ public class TYPEStmt implements StatementVisitor{
public void visit(NewClass methodCall) {
//Overloading:
Set<Constraint> methodConstraints = new HashSet<>();
for(MethodAssumption m :
this.getConstructors(info, (RefType) methodCall.getType(), methodCall.getArgumentList())){
for(MethodAssumption m : this.getConstructors(info, (RefType) methodCall.getType(), methodCall.getArgumentList())){
methodConstraints.add(generateConstructorConstraint(methodCall, m, info, getResolverInstance()));
}
if(methodConstraints.size()<1){
@ -640,12 +639,7 @@ public class TYPEStmt implements StatementVisitor{
RefTypeOrTPHOrWildcardOrGeneric argType = foMethod.arglist.getArguments().get(i).getType();
RefTypeOrTPHOrWildcardOrGeneric assType = assumption.getArgTypes(resolver).get(i);
<<<<<<< Updated upstream
=======
//Zuordnung von MethoCall.signature (Argumenttypen) zu der Argumenttypen der ausgewaehlten Methode (assumption.params)
//ret.add(new Pair(foMethod.signature.get(i), assumption.getArgTypes().get(i), PairOperator.EQUALSDOT));
>>>>>>> Stashed changes
ret.add(new Pair(argType, assType, PairOperator.SMALLERDOT));
@ -653,14 +647,6 @@ public class TYPEStmt implements StatementVisitor{
// ret.add(new Pair(foMethod.argTypes.get(i), assType, PairOperator.EQUALSDOT));
//Fuer Bytecodegenerierung PL 2020-03-09 wird derzeit nicht benutzt ENDE
}
<<<<<<< Updated upstream
=======
//Zuordnung von MethodCall.signature(ReturnType) zu dem ReturnType der ausgewaehlten Methode (assumption.returnType)
System.out.println(foMethod.name);
//ret.add(new Pair(foMethod.signature.get(foMethod.signature.size()-1), assumption.getReturnType(), PairOperator.EQUALSDOT));
>>>>>>> Stashed changes
return ret;
}