ExAST.Symbol.Definition (ExAST v0.11.0)

Copy Markdown View Source

A module, function, macro, callback, or attribute definition found in Elixir code.

Summary

Types

kind()

@type kind() ::
  :module
  | :def
  | :defp
  | :defmacro
  | :defmacrop
  | :defdelegate
  | :defcallback
  | :defmacrocallback
  | :attribute

t()

@type t() :: %ExAST.Symbol.Definition{
  arity: non_neg_integer() | nil,
  column: pos_integer() | nil,
  kind: kind(),
  line: pos_integer() | nil,
  mfa: {module(), atom(), non_neg_integer()} | nil,
  module: String.t() | nil,
  name: String.t(),
  node: Macro.t(),
  qualified_name: String.t(),
  visibility: visibility()
}

visibility()

@type visibility() :: :public | :private | nil