Surface.AST.Meta (surface v0.2.0) View Source

A container for metadata about compilation.

Properties

* `:line` - the line from the source code where the parent was extracted
* `:module` - the component module (e.g. `Surface.Components.LivePatch`)
* `:node_alias` - the alias used inside the source code (e.g. `LivePatch`)
* `:file` - the file from which the source was extracted
* `:line_offset` - the line offset from the caller's line to the start of this source
* `:caller` - a Macro.Env struct representing the caller

Link to this section Summary

Link to this section Types

Specs

t() :: %Surface.AST.Meta{
  caller: Macro.Env.t(),
  checks: Keyword.t(boolean()),
  file: binary(),
  line: non_neg_integer(),
  line_offset: non_neg_integer(),
  module: atom(),
  node_alias: binary() | nil
}

Link to this section Functions