The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Erlang::Parser::Node::FunLocalCase - one case in a local fun

DESCRIPTION

To Erlang::Parser::Node::FunLocal as Erlang::Parser::Node::Def is to Erlang::Parser::Node::DefList.

Accessors

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) when is_bool(X) -> 4