Project

Profile

Help

clean stack overflow message possible on XPath function calling itself?

Added by Martin Honnen 3 months ago

Over on Slack Christian Grün presented some XPath/XQuery 4 expression fn { .(.) } ! .(.) that causes infinite recursion/a stack overflow. As an XPath 3.1 alternative Reece suggested let $self-identity := function ($self as function(*)) { $self($self) } return $self-identity($self-identity).

I tried to run both expression through Saxon*CS) 12.5 EE and find it to spew out a longish list of errors (too long for my console buffer to keep them all) like pasted below; I was wondering whether there is some cleaner/nicer way to report this to the users.

PS C:\Users\marti> & 'C:\Program Files\Saxonica\SaxonCS-12.5\SaxonCS.exe' query -t -qversion:4.0 -qs:"fn { .(.) } ! .(.)" !method=adaptive
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass1_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.ContextMappingIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.next()
   at Saxon.Hej.om.MemoSequence+ProgressiveIterator.materialize()
   at Saxon.Hej.om.SequenceTool.toGroundedValue(Saxon.Hej.om.SequenceIterator)
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.elab.PullElaborator+<>c__DisplayClass2_0.<elaborateForPush>b__0(Saxon.Hej.event.Outputter, Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.instruct.ForEach+ForEachElaborator+<>c__DisplayClass2_0.<elaborateForPush>b__1(Saxon.Hej.event.Outputter, Saxon.Hej.expr.XPathContext)
   at Saxon.Eej.ee.optim.XQueryExpressionEE.processQuery(Saxon.Hej.event.Outputter, Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.query.XQueryExpression.run(Saxon.Hej.query.DynamicQueryContext, Saxon.Ejavax.xml.transform.Result, Saxon.Ejava.util.Properties)
   at Saxon.Hej.s9api.XQueryEvaluator.run(Saxon.Hej.s9api.Destination)
   at Saxon.Hej.Query.runQuery(Saxon.Hej.s9api.XQueryExecutable, Saxon.Hej.s9api.XQueryEvaluator, Saxon.Ejavax.xml.transform.Source, Saxon.Hej.s9api.Destination)
   at Saxon.Hej.Query.doQuery(System.String[])
   at Saxon.Hej.Query.main(System.String[])
   at Saxon.Cmd.Command.Main(System.String[])

and

PS C:\Users\marti> & 'C:\Program Files\Saxonica\SaxonCS-12.5\SaxonCS.exe' query -t -qversion:4.0 -qs:'let $self-identity := function ($self as function(*)) { $self($self) }  return $self-identity($self-identity)' !method=adaptive
.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.value.MemoClosure.makeSequence()
   at Saxon.Hej.value.MemoClosure.iterate()
   at Saxon.Hej.value.Closure.materialize()
   at Saxon.Hej.type.TypeHierarchy.applyFunctionConversionRules(Saxon.Hej.om.Sequence, Saxon.Hej.value.SequenceType, Saxon.Ejava.util.function.Supplier`1<Saxon.Hej.expr.parser.RoleDiagnostic>, Saxon.Hej.s9api.Location)
   at Saxon.Hej.expr.DynamicFunctionCall+DynamicFunctionCallElaborator+<>c__DisplayClass0_0.<elaborateForPull>b__0(Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.elab.PullElaborator+<>c__DisplayClass2_0.<elaborateForPush>b__0(Saxon.Hej.event.Outputter, Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.expr.LetExpression+LetExprElaborator+<>c__DisplayClass4_0.<elaborateForPush>b__0(Saxon.Hej.event.Outputter, Saxon.Hej.expr.XPathContext)
   at Saxon.Eej.ee.optim.XQueryExpressionEE.processQuery(Saxon.Hej.event.Outputter, Saxon.Hej.expr.XPathContext)
   at Saxon.Hej.query.XQueryExpression.run(Saxon.Hej.query.DynamicQueryContext, Saxon.Ejavax.xml.transform.Result, Saxon.Ejava.util.Properties)
   at Saxon.Hej.s9api.XQueryEvaluator.run(Saxon.Hej.s9api.Destination)
   at Saxon.Hej.Query.runQuery(Saxon.Hej.s9api.XQueryExecutable, Saxon.Hej.s9api.XQueryEvaluator, Saxon.Ejavax.xml.transform.Source, Saxon.Hej.s9api.Destination)
   at Saxon.Hej.Query.doQuery(System.String[])
   at Saxon.Hej.Query.main(System.String[])
   at Saxon.Cmd.Command.Main(System.String[])

Replies (2)

RE: clean stack overflow message possible on XPath function calling itself? - Added by Michael Kay about 1 month ago

I've taken a look at this. There are paths on which we detect a Java StackOverflow exception and convert it to something more meaningful than a Java (or C#) stack trace, but the only places to do that on this particular failure seem to be so customized to this rather artificial example that I don't think the change would be generally useful.

    (1-2/2)

    Please register to reply