logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ExtUtils::XSpp::Node::Enum - Node representing an enum declaration

Accessors

name
       Returns the name of the enumeration, or "undef" for anonymous enumerations.

   elements
       An array reference containing mostly ExtUtils::XSpp::Node::EnumValue (it can contain other kinds of
       nodes).

perl v5.34.0                                       2022-06-13                    ExtUtils::XSpp::Node::Enum(3pm)

Description

       An ExtUtils::XSpp::Node subclass representing an "enum" declaration.  As an example

           enum Bool
           {
               FALSE = 0,
               TRUE
           };

       will create an "ExtUtils::XSpp::Node::Enum" object with "name" "Bool" and two
       ExtUtils::XSpp::Node::EnumValue values in the "arguments" array.

       Enumerations do not affect the generated code.

Methods

new
           my $e = ExtUtils::XSpp::Node::Enum->new( name     => 'Bool',
                                                    elements => [ ... ],
                                                    );

       Creates a new "ExtUtils::XSpp::Node::Enum".

       "name" gives the name of the enumeration, "undef" for anonymous enumerations.  "elements" should only
       contain ExtUtils::XSpp::Node::EnumValue or ExtUtils::XSpp::Node::Raw objects.

Name

       ExtUtils::XSpp::Node::Enum - Node representing an enum declaration

See Also