Documentation
/ package RakuAST
/ package RakuAST::Name
/ class RakuAST::Name::Part
/ class RakuAST::Name::Part::Simple
class RakuAST::Name::Part::Simple { }
The RakuAST::Name::Part::Simple class represents a simple string
part of a RakuAST::Name object.
Object introspection
RakuAST::Name::Part::Simple 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
Returns the name of this part as a Str .
is-empty
say $part.is-empty; # True or False
Returns whether this is an empty part of a RakuAST::Name .
is-pseudo-package
say $part.is-pseudo-package; # True or False
Returns whether this part could be considered a pseudo-package name.
The following names would be considered pseudo-packages:
CALLER
CALLERS
CLIENT
COMPILING
CORE
DYNAMIC
LEXICAL
MY
OUR
OUTER
OUTERS
SETTING
UNIT
Object creation
my $part = RakuAST::Name::Part::Simple.new($name);
A RakuAST::Name::Part::Simple object is instantiated with the .new
method. It takes a single argument: the string to be used for the name.
See Also class AST
Abstract representation of a piece of source code
class atomicint
Integer (native storage at the platform's atomic operation size)
class Collation
Encapsulates instructions about how strings should be sorted
class Cool
Object that can be treated as both a string and number
class ForeignCode
Rakudo-specific class that wraps around code in other languages (generally NQP)
class Format
Convert values to a string given a format specification
class HyperSeq
An object for performing batches of work in parallel with ordered
output
class Mu
The root of the Raku type hierarchy.
class Proxy
Item container with custom storage and retrieval
class RaceSeq
Performs batches of work in parallel without respecting original
order.
class Rat
Rational number (limited-precision)
class Routine
Code object with its own lexical scope and return handling
class Scalar
A mostly transparent container used for indirections
š¦ / Documentation
/ package RakuAST
/ package RakuAST::Name
/ class RakuAST::Name::Part
/ class RakuAST::Name::Part::Simple
The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society.
All rights reserved.
Built with Podlite ā the markup and publishing tools behind this site.