Explorer

core.module-entry-lookup

description
The entry of the part id, in the hash index of the module entries by part id (made with core.list-hash-index in core.type-checker). The part ids are unique in a project
type
Fn(
  entries: List<List<Record{
    part_id: String,
    module_id: String,
    part_type: Union{#none, #some(@core.expression)},
    type_declaration: Union{#none, #some(@core.expression)},
    expression_key: Union{#none, #some(String)},
    has_expression: Boolean,
    references: List<String>
  }>>,
  part_id: String
) -> Union{
  #none,
  #some(Record{
    part_id: String,
    module_id: String,
    part_type: Union{#none, #some(@core.expression)},
    type_declaration: Union{#none, #some(@core.expression)},
    expression_key: Union{#none, #some(String)},
    has_expression: Boolean,
    references: List<String>
  })
}
expression
fn(entries$0, part_id$1) =>
  @core.list-hash-index-find(index: $0, field: "part_id", value: $1)
visibility
public
core.module-entry-lookup (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: phgPN5FBYPjuaAERqQusvMfF-Bn6nN2qNSwvuAKYs9o
content hash: 13fF1fpyqAF9Lw_g3GnkC5gZOtcrnotNNJob-xmZTQ0