Explorer

core.compile-time-constant-candidate

description
Whether core.compile-fold-constant-parts tries to compute a part with this expression at compile time: a call, let, match, record, list, variant, record_get, part reference or quote that is not a type (core.compile-type-level). Not a function, a built-in, a literal, a type or a secret
type
Fn(expr: @core.expression, index: List<List<Record{id: String, expression: @core.expression}>>) -> Boolean
expression
fn(expr$0, index$1) =>
  match @core.compile-type-level(expr: $0, index: $1) {
    true =>
      false,
    false =>
      match $0 {
        #call(_) =>
          true,
        #let(_) =>
          true,
        #match(_) =>
          true,
        #record(_) =>
          true,
        #list(_) =>
          true,
        #variant(_) =>
          true,
        #record_get(_) =>
          true,
        #part_reference(_) =>
          true,
        #quote(_) =>
          true,
        _ =>
          false
      }
  }
visibility
public
core.compile-time-constant-candidate (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: 586IcczsemMp8zMX1FboYxCaX29yIatlhnfzQvL2qF4
content hash: -X2MJybEOTJRVNXKj7GtGOeSGOwQ2AmwwCL4Dvhf6xc