RustQ.Meta.Core.Call (rustq v1.0.0-rc.19)

Copy Markdown View Source

A call in Rusty-Elixir normalized to its module, function, and arguments, so lowering and typing match Kernel operators, local calls, remote calls, and pipes the same way.

Summary

Types

t()

@type t() :: %RustQ.Meta.Core.Call{
  args: [Macro.t()],
  function: atom(),
  meta: keyword(),
  module: module(),
  source: Macro.t()
}

Functions

normalize(source)

@spec normalize(Macro.t()) :: {:ok, t()} | :unsupported

pipe_remote(left, arg2)

@spec pipe_remote(Macro.t(), Macro.t()) :: {:ok, Macro.t()} | :unsupported