NAME
Erlang::Parser::Node::Def - a match in a function definition
DESCRIPTION
Contains a single pattern match and guard expr/seq list, with the body of the function.
Accessors
def
-
The name of the function.
args
-
A list of Erlang::Parser::Nodes which constitute the argument patterns to be matched.
whens
-
The Erlang::Parser::Node::WhenList containing guard expressions/sequences.
stmts
-
A list of Erlang::Parser::Nodes; the body for the function.
Methods
print
-
Pretty-prints the node to its filehandle argument.
EXAMPLE
x(Y) ->
Z = Y + Y,
Z * 2