package MCC.IR;
-
+import MCC.Compiler;
import java.util.*;
public class RelationInclusion extends Inclusion {
writer.endblock();
}
+ if (Compiler.REPAIR) {
+ writer.outputline("if (" + addeditem + ")");
+ writer.startblock(); {
+ Repair.generate_dispatch(writer, relation, rd.getSafeSymbol(), ld.getSafeSymbol());
+ }
+ writer.endblock();
+ }
+
if (!typesafe) {
writer.endblock();
}
sa.getErrorReporter().report(null, "Type of right element '" + rd.getSymbol() + "' must match range type '" + relation.getRange().getType().getSymbol() + "'");
ok = false;
}
-
return ok;
}