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