definy.immediate-part-content
- description
- Read a definition without the evaluator (docs/part-definition.md). none if it is not a core.define-part / core.define-type call (evaluate it with core.eval-value). some(none) if it is such a call but not a core.part-content
- type
Fn(definition: @core.expression) -> Union{#none, #some(Union{#none, #some(@core.part-content)})}
- expression
fn(definition$0) => match $0 { #call(call$1) => match $1.function { #part_reference(reference$2) => match @core.equal(left: $2.part_definition_event_hash, right: "EfSI42pS9I-j565952QsV2vAH3nxB4Yttfbd0eA0fFw") { true => #some(@definy.define-part-literal(arguments: $1.arguments)), false => match @core.equal(left: $2.part_definition_event_hash, right: "QrSDfKrySDxWpVkY3rvpLHWbq1pgi32lYbbqNUGNCf4") { true => #some(@definy.define-type-literal(arguments: $1.arguments)), false => #none } }, _ => #none }, _ => #none }- visibility
- public
definy.immediate-part-content (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: nwX-_lp2BCi-iCoW5y5oNmdW4CKG_oBpsWGClK0uEg8 content hash: xH5s0qJDjB3cwnkW5OUiZXlptI5bzyT5plCelB-oeZ8