Explorer

core.quote-part-ids

description
Adds the ids of the parts the expression references (following the references, also in type expressions and nested quotes: core.expression-part-references) to found. Follows them breadth first with a work list (core.quote-part-ids-from), so a long chain of references does not deepen the stack
type
Fn(
  expr: @core.expression,
  found: List<String>,
  parts: List<Record{id: String, expression: @core.expression}>
) -> List<String>
expression
fn(expr$0, found$1, parts$2) =>
  @core.quote-part-ids-from(
    frontier: @core.expression-part-references(expr: $0, ids: []),
    found: $1,
    index: @core.list-hash-index(list: $2, field: "id")
  )
visibility
public
core.quote-part-ids (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: OkGon0nCBsBCIwJysPNmW_cXGnfheNrRi-VzApxH4do
content hash: zs2d1tdXU7YolatcwVHFXBBHcw3vYtUYByphfUEItYA