BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2026-10-28

class RakuAST::Name::Part::EmptyEdge

Represent an empty part at the start/end of a RakuAST::Name

class RakuAST::Name::Part::EmptyEdge { }
Code

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;  # ""
Code

Returns the name of this part. Is always the empty string.

is-empty§

say $part.names-empty;  # True
Code

Returns whether this is an empty part of a RakuAST::Name. Always returns True.

is-pseudo-package§

say $part.is-pseudo-package;  # False
Code

Returns whether this part could be considered a pseudo-package. Always returns False.

Object creation§

my $part = RakuAST::Name::Part::Empty.new;
Code

A RakuAST::Name::Part::EmptyEdge object is instantiated with the .new method, which does not take any arguments.