Zuzu::AST::Stmt::Catch(3)

NAME
Zuzu::AST::Stmt::Catch - AST node for one catch clause

DESCRIPTION
Represents one statement form in the abstract syntax tree and delegates execution to "Zuzu::Runtime".

INHERITANCE
Inherits from "Moo::Object".

ROLES
Consumes "Zuzu::AST::Role::Node".

ATTRIBUTES

  type_expr
Type: ConsumerOf["Zuzu::AST::Role::Node"].

Type expression used to match thrown values.

  name
Type: Str.

Identifier bound in the catch block for the thrown value.

  block
Type: InstanceOf["Zuzu::AST::Block"].

Block executed when this catch clause matches.

METHODS

  evaluate
Dispatches this AST node to the matching runtime evaluator.

SEE ALSO
"Zuzu::AST::Role::Node".

Subclasses: none in this distribution.

COPYRIGHT AND LICENCE
Zuzu::AST::Stmt::Catch is copyright Toby Inkster.

It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.