Explorer

core.define-part

description
Define a part. The content stored for a part is an expression that evaluates to core.part-content, usually a call of this part or of a definition part built on it such as core.define-type (docs/part-definition.md). The name of the part is kept outside, in the snapshot
type
Fn(
  description: List<@core.localized-text>,
  visibility: @core.visibility,
  part_type: Union{#none, #some(@core.expression)},
  expression: Union{#none, #some(@core.expression)}
) -> @core.part-content
expression
fn(description$0, visibility$1, part_type$2, expression$3) =>
  {description: $0, visibility: $1, part_type: $2, expression: $3}
visibility
public
core.define-part (project definy, branch branch-status, snapshot OcqIMzA04f2qxxDaHf48JCDbWdgRX16sW4_jDQ3YQic)
id: EfSI42pS9I-j565952QsV2vAH3nxB4Yttfbd0eA0fFw
content hash: HzNo984XB1wcIdNuq8iRFjyQ8AQgtbiqSKH_UQLlleQ