}
public void resolve(TranslationContext context) {
+ if(parameters != null) {
+ for(int i=0;i<parameters.length;++i)
+ parameters[i] = parameters[i].resolve(context);
+ }
if(relation instanceof UnresolvedCHRRelation) {
UnresolvedCHRRelation unresolved = (UnresolvedCHRRelation)relation;
CHRConstraint constraint = context.resolveCHRConstraint(unresolved.name);
if(sclRelation != null)
relation = new ExternalCHRRelation(sclRelation);
else {
+ if(unresolved.name.contains(".")) {
+ context.getErrorLog().log(unresolved.location, "Couldn't resolve relation " + unresolved.name + ".");
+ return;
+ }
if(parameters == null) {
context.getErrorLog().log(location, "Relation must be declared if record syntax is used.");
return;
}
fields = null;
}
- else {
- for(int i=0;i<parameters.length;++i)
- parameters[i] = parameters[i].resolve(context);
- }
}
public void collectRefs(TObjectIntHashMap<Object> allRefs, TIntHashSet refs) {