Zuzu::AST::Stmt::Trait(3)

NAME
Zuzu::AST::Stmt::Trait - AST node for trait declarations

DESCRIPTION
Represents a trait declaration, including the trait's method definitions.

INHERITANCE
Inherits from "Moo::Object".

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

ATTRIBUTES

  name
Type: Str.

Identifier name declared or referenced by the node/value.

  methods
Type: ArrayRef[InstanceOf["Zuzu::AST::Stmt::Method"]].

Instance methods contributed by this trait.

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::Trait 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.