Explorer

definy.snapshot-check-without-expression

description
The messages of the parts without an expression or a type (without_expression of core.type-checker), except compiler builtins
type
Fn(ids: List<String>, parts: List<@definy.snapshot-check-part>) -> List<String>
expression
fn(ids$0, parts$1) =>
  @core.list-fold(
    T: String,
    A: List<String>,
    reducer: fn(acc$2, item$3) =>
      match @definy.snapshot-check-part-find(parts: $1, id: $3, index: 0) {
        #none(_) =>
          $2,
        #some(part$4) =>
          match @definy.snapshot-check-part-builtin(part: $4) {
            true =>
              $2,
            false =>
              @core.list-append(
                list: $2,
                item: @core.string-concat(
                  left: @core.string-concat(left: "part '", right: $4.name),
                  right: "': not supported: part has no expression or type"
                )
              )
          }
      },
    init: [],
    xs: $0
  )
visibility
public
definy.snapshot-check-without-expression (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: esx32jYxcPq-JVLyUehEXCX67YVtQhUGBUyNhCWBbRk
content hash: 0MrO_hN3CAJ1EPaJPjOvelXqsapT8uXKOGObK2sRVYA