Change-Id: I8f7ef2b89ca8359c4de1944a36ae4b9688bfca18
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]);
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);
context.getErrorLog().log(location, "String interpolation can be a pattern only if has one hole.");
return new EError();
}
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;