CompUnit
The CompUnit
represents the metainformation 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)
Returns the authority information with which the CompUnit
object was created (if any).
method distribution(--> Distribution)
Returns the Distribution object with which the CompUnit
object was created (if any).
method from(--> Str)
Returns the name of the language with which the CompUnit
object was created (if any). It will be Raku
by default.
method precompiled(--> Bool)
Returns whether the CompUnit
object originated from a precompiled source.
method repo(--> CompUnit::Repository)
Returns the CompUnit::Repository object with which the CompUnit
object was created.
method repo-id(--> Str)
Returns the identification string with which the CompUnit
object can be identified in the associated repo.
method short-name(--> Str)
Returns The short name with which the CompUnit
object was created (if any).
method version(--> Version)
Returns the version information with which the CompUnit
object was created (if any).