Explorer

core.compile-reachable-parts

description
The parts that the compiled code of expr needs: the parts it references, following the references but not into quotes (core.compile-part-references). core.compile-to-wasm compiles only these, so parts may hold more parts than the expression uses
type
Fn(expr: @core.expression, parts: List<Record{id: String, expression: @core.expression}>) -> List<Record{id: String, expression: @core.expression}>
expression
fn(expr$0, parts$1) =>
  @core.compile-parts-of(
    ids: @core.compile-reachable-ids-from(
      frontier: @core.compile-part-references(expr: $0, ids: []),
      found: [],
      index: @core.list-hash-index(list: $1, field: "id")
    ),
    parts: $1
  )
visibility
public
core.compile-reachable-parts (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: RC_KUDMpuq3ZOVCoIEw3UYSWHQXUEhTrjAo55tXDTFs
content hash: VCZvCZe0u4TdTpIWPl0nlL4MDQ7Fj3Ka6m4beLMA9Ws