CompUnit
class CompUnit {}
The CompUnit represents the meta-information about a compilation unit. This usually relates to source code that resides in a file on a filesystem, rather than code that is executed using an EVAL statement.
method auth(--> Str:D)
Returns the authority information with which the CompUnit object was created (if any).
method distribution(--> Distribution:D)
Returns the Distribution object with which the CompUnit object was created (if any).
method from(--> Str:D)
Returns the name of the language with which the CompUnit object was created (if any). It will be Raku by default.
method precompiled(--> Bool:D)
Returns whether the CompUnit object originated from a precompiled source.
method repo(--> CompUnit::Repository:D)
Returns the CompUnit::Repository object with which the CompUnit object was created.
method repo-id(--> Str:D)
Returns the identification string with which the CompUnit object can be identified in the associated repo.
method short-name(--> Str:D)
Returns The short name with which the CompUnit object was created (if any).
method version(--> Version:D)
Returns the version information with which the CompUnit object was created (if any).