SCLValue showForPrinting = context.getEnvironment().getValue(Names.Prelude_showForPrinting);
for(int i=0;i<expressions.length;++i)
components[i] = new EApply(new EConstant(showForPrinting), expressions[i]);
- return new EApply(new ELiteral(new StringInterpolation(strings)), components).resolve(context);
+ EApply result = new EApply(new ELiteral(new StringInterpolation(strings)), components);
+ result.setLocationDeep(location);
+ return result.resolve(context);
}
@Override
context.getErrorLog().log(location, "String interpolation can be a pattern only if has one hole.");
return new EError();
}
- return new EApply(new ELiteral(new StringInterpolation(strings)), expressions);
+ EApply result = new EApply(new ELiteral(new StringInterpolation(strings)), expressions);
+ result.setLocationDeep(location);
+ return result;
}
@Override