Sibyl.AST (Sibyl v0.1.11)
View SourceUtility module for working with ASTs
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.
Types
Functions
Returns true if the given argument is an Elixir AST node representing a module alias
such as Enum
.
@spec module(alias(), Macro.Env.t()) :: module()
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.