View Source Corsa.Type (corsa v0.1.2)

Summary

Functions

Link to this function

_collect_types(module, bytecode)

View Source

This functionextracts types on dynamically loaded modules that use Corsa and stores it in Corsa.Type cache.

Link to this macro

conforms(v, t)

View Source (macro)

Basic Types

Link to this macro

conforms?(v, t)

View Source (macro)
Link to this function

conforms_type(v, t, caller)

View Source
@spec conforms_type(value :: any(), type :: Macro.t(), caller :: Macro.Env.t()) ::
  {:ok, Macro.t()} | false
@spec conforms_type?(any(), Macro.t(), Macro.Env.t()) :: boolean()
@spec fetch_protocols() :: [module()]
@spec fetch_type(
  module(),
  {atom(), non_neg_integer()}
) :: {:ok, Macro.t()} | :error
@spec fetch_types(module()) :: {:ok, Macro.t()} | :error
Link to this function

solve_alias(module, type)

View Source
@spec solve_alias(module(), Macro.t()) :: {:ok, Macro.t()} | {:error, String.t()}