if (parent instanceof GeneralComparison && ((GeneralComparison)parent).getOperator() == Token.EQUALS) {
indexed = true;
}
LetExpression let = new LetExpression();
let.setVariableQName(new StructuredQName("zz", NamespaceConstant.SAXON, "zz" + let.hashCode()));
SequenceType type = SequenceType.makeSequenceType(child.getItemType(th), child.getCardinality());
let.setRequiredType(type);
ExpressionTool.copyLocationInfo(containingExpression, let);
let.setSequence(LazyExpression.makeLazyExpression(child));
let.setAction(containingExpression);