View Source Sibyl.AST (Sibyl v0.1.7)
Utility module for working with ASTs
Link to this section Summary
Functions
Returns true if the given argument is an Elixir AST node representing a module alias
such as Enum
.
Given an alias AST node, returns the fully resolved alias that said node would expand to.
Returns the :__unused__
atom.
Returns true if the given argument is equal to :__unused__
. Primarily used internally.
Link to this section Types
Link to this section Functions
Returns true if the given argument is an Elixir AST node representing a module alias
such as Enum
.
Given an alias AST node, returns the fully resolved alias that said node would expand to.
For example, given: {:__aliases, unused(), [Elixir, Enum]}
, returns: Enum
.
@spec unused() :: ast()
Returns the :__unused__
atom.
Returns true if the given argument is equal to :__unused__
. Primarily used internally.