Explorer

core.project-snapshot-module-to-value

description
Turn core.project-snapshot-module into a value of the evaluator (core.value). The inverse of core.value-to-project-snapshot-module (generated by scripts/generate_value_decoders.ts)
type
Fn(value: @core.project-snapshot-module) -> @core.value
expression
fn(value$0) =>
  #record<@core.value>([
    {key: "name", value: #string<@core.value>($0.name)},
    {
      key: "description",
      value: #list<@core.value>(@core.list-map(
        T: @core.localized-text,
        U: @core.value,
        f: fn(item$1) =>
          @core.localized-text-to-value(value: $1),
        xs: $0.description
      ))
    },
    {key: "visibility", value: @core.visibility-to-value(value: $0.visibility)},
    {
      key: "parts",
      value: #list<@core.value>(@core.list-map(
        T: @core.module-snapshot-part,
        U: @core.value,
        f: fn(item$2) =>
          @core.module-snapshot-part-to-value(value: $2),
        xs: $0.parts
      ))
    }
  ])
visibility
public
core.project-snapshot-module-to-value (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: k6YYNx3v24DuVGXzt97AJRt8Sd34zesonZ7h_pVVhUw
content hash: CLZLYpWZaG8kPB4d7owO1mX8K_fNYwL8Ek0sr3XbxcA