Explorer

definy.snapshot-check-latest-entries

description
The latest list of core.type-checker: the parts of the replaced modules (the modules of the snapshot and the modules of the project on main now) are in the replaced module (#replaced)
type
Fn(latest: List<@definy.type-check-entry>, replaced: List<String>) -> List<@definy.type-check-entry>
expression
fn(latest$0, replaced$1) =>
  @core.list-map(
    T: @definy.type-check-entry,
    U: @definy.type-check-entry,
    f: fn(item$2) =>
      {
        part_id: $2.part_id,
        module_id: match @core.list-contains-string(list: $1, target: $2.module_id, index: 0) {
          true =>
            "#replaced",
          false =>
            $2.module_id
        },
        part_type: $2.part_type,
        type_declaration: $2.type_declaration,
        expression_key: $2.expression_key,
        has_expression: $2.has_expression,
        references: $2.references
      },
    xs: $0
  )
visibility
public
definy.snapshot-check-latest-entries (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: g0R_uG3tFJpjadG3YEzJiM6q17Gvy-AAQ2pBHOYD520
content hash: QUW0E5cBZ6qEvASN5tTCNGjL_fxxPmoJcusX41mjoGc