Dogma.Util.ASTNode

Utility functions for analyzing and categorizing AST nodes

Source

Summary

literal?(x)

Returns true if the node x is a literal

iex> Dogma.Util.ASTNode.literal?( "foo" )
true

Functions

literal?(x)

Returns true if the node x is a literal

iex> Dogma.Util.ASTNode.literal?( "foo" )
true

iex> Dogma.Util.ASTNode.literal?({:foo, [], Elixir})
false
Source