Explorer

definy.latest-type-check-entry

description
The entry of the type checker for a part of the latest main snapshot (no type if the content is none)
type
Fn(part: @definy.snapshot-check-part) -> @definy.type-check-entry
expression
fn(part$0) =>
  match $0.content {
    #some(content$1) =>
      @definy.content-type-check-entry(part_id: $0.id, module_id: $0.module_id, content_hash: $0.content_hash, content: $1),
    #none(_) =>
      {
        part_id: $0.id,
        module_id: $0.module_id,
        part_type: #none,
        type_declaration: #none,
        expression_key: #some($0.content_hash),
        has_expression: false,
        references: []
      }
  }
visibility
public
definy.latest-type-check-entry (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: M9JRxdcci0VPmQauj9u9t84D5HsZRGWK67FEV_j15yk
content hash: sVa4uTYQcvBsrCTEoyu4b_zxYaWllPFMBJNEUv-Zn-g