use of abs.frontend.typechecker.TypeParameter in project abstools by abstools.
the class TypeExtensionHelper method checkDataConstructorExp.
public void checkDataConstructorExp(DataConstructorExp e) {
DataConstructor decl = (DataConstructor) e.getDecl();
if (decl.getDataTypeDecl() instanceof ParametricDataTypeDecl) {
HashMap<TypeParameter, Type> map = new HashMap<>();
for (int i = 0; i < decl.getNumConstructorArg(); i++) {
Type rht = e.getParam(i).getType();
Type arg = decl.getConstructorArg(i).getType();
checkTypeParameter(map, rht, arg, e.getParam(i));
}
}
}
Aggregations