PlanRealizer realizer = new PlanRealizer(cachedContext, this, runtimeRulesetVariable, implementationParameters[0], plan.ops);
realizer.nextOp(methodWriter);
if(methodWriter.isUnfinished())
- methodWriter.return_(BooleanConstant.TRUE);
+ methodWriter.return_(rule.location, BooleanConstant.TRUE);
}
}
if(!includes.isEmpty() || extensible) {
methodWriter.apply(Locations.NO_LOCATION,
new JavaMethod(true, runtimeRulesetClassName, "register", Types.PROC, Types.UNIT, new Type[] {runtimeRulesetType, Types.CHRContext}),
object.getTarget(), methodWriter.getParameters()[0]);
- methodWriter.return_(NoRepConstant.UNIT);
+ methodWriter.return_(location, NoRepConstant.UNIT);
}
{
CodeWriter methodWriter = object.createMethod(w.getModuleWriter(), TVar.EMPTY_ARRAY, Types.PROC, Types.UNIT, new Type[] {Types.CHRContext});
methodWriter.apply(Locations.NO_LOCATION,
new JavaMethod(true, runtimeRulesetClassName, "unregister", Types.PROC, Types.UNIT, new Type[] {runtimeRulesetType, Types.CHRContext}),
object.getTarget(), methodWriter.getParameters()[0]);
- methodWriter.return_(NoRepConstant.UNIT);
+ methodWriter.return_(location, NoRepConstant.UNIT);
}
}
if(initConstraint != null) {