This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
multi sub trait_mod:<is>(Method $m, :$must!){ | |
note "trait only if stub is present in base class activated" | |
} | |
multi sub trait_mod:<is>(Method $m, :$override!){ | |
note "trait only if method overrides activated"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl6 | |
use v6.c; | |
sub MAIN(Str $module) { | |
my $cu = $*REPO.need(CompUnit::DependencySpecification.new(:short-name($module))); | |
say "Dist: " ~ $cu.repo.prefix.child('dist/' ~ $cu.distribution.id); | |
say "Source: " ~ $cu.repo.prefix.child('sources/' ~ $cu.distribution.provides{$module}.values[0]<file>); | |
} |