class RakuAST::Name::Part::EmptyEdge { }
The RakuAST::Name::Part::EmptyEdge class represents an empty part of a RakuAST::Name object as either the first or last part of the name.
Object introspection§
RakuAST::Name::Part::EmptyEdge object is typically created when parsing Raku Programming Language code. So most developers will only need to know how to introspect the objects created.
name§
dd $part.name; # ""
Returns the name of this part. Is always the empty string.
is-empty§
say $part.names-empty; # True
Returns whether this is an empty part of a RakuAST::Name. Always returns True.
is-pseudo-package§
say $part.is-pseudo-package; # False
Returns whether this part could be considered a pseudo-package. Always returns False.
Object creation§
my $part = RakuAST::Name::Part::Empty.new;
A RakuAST::Name::Part::EmptyEdge object is instantiated with the .new method, which does not take any arguments.