Explorer

core.compile-builtin-name

description
The name of the compiler built-in if the called function is one (directly or as a part reference), otherwise an empty string
type
Fn(
  function: @core.callee,
  parts: List<List<Record{id: String, expression: @core.expression, base: Number}>>
) -> String
expression
fn(function$0, parts$1) =>
  match $0 {
    #builtin(name$2) =>
      $2,
    #part_reference(reference$3) =>
      let found$4 = @core.compile-find-part(parts: $1, id: $3.part_definition_event_hash, index: 0);
      match @core.list-get(list: $4, index: 0) {
        #none(_) =>
          "",
        #some(item$1006) =>
          match $1006.expression {
            #builtin(name$5) =>
              $5,
            _ =>
              ""
          }
      },
    _ =>
      ""
  }
visibility
public
core.compile-builtin-name (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: fWPWTm0WEZZnQemYp9ZP9DR-MN7Qdm7mPiqABCIolNM
content hash: A7lU64V51C847lP61uCduHuH7Qabc_aRCCUWQbVqD8Q