class CompUnit

CompUnit

class 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:D)

Returns the authority information with which the CompUnit object was created (if any).

method distribution

method distribution(--> Distribution:D)

Returns the Distribution object with which the CompUnit object was created (if any).

method from

method from(--> Str:D)

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:D)

Returns whether the CompUnit object originated from a precompiled source.

method repo

method repo(--> CompUnit::Repository:D)

Returns the CompUnit::Repository object with which the CompUnit object was created.

method repo-id

method repo-id(--> Str:D)

Returns the identification string with which the CompUnit object can be identified in the associated repo.

method short-name

method short-name(--> Str:D)

Returns The short name with which the CompUnit object was created (if any).

method version

method version(--> Version:D)

Returns the version information with which the CompUnit object was created (if any).

Type Graph

Type relations for CompUnit
perl6-type-graph CompUnit CompUnit Any Any CompUnit->Any Mu Mu Any->Mu

Expand above chart