5
src/classes/ContainerDeclarand.pir - Class specifying a declaration
9
This is the class that gets created and passed to a trait_mod to
10
describe a declaration of a container.
14
.namespace ['ContainerDeclarand']
16
.sub '' :anon :load :init
18
p6meta = get_hll_global ['Perl6Object'], '$!P6META'
19
p6meta.'new_class'('ContainerDeclarand', 'parent'=>'Any', 'attr'=>'$!container $!name')
23
.param pmc container :named('container')
24
.param pmc name :named('name')
25
$P0 = new ['ContainerDeclarand']
26
setattribute $P0, '$!container', container
27
setattribute $P0, '$!name', name
31
.sub 'container' :method
32
$P0 = getattribute self, '$!container'
37
$P0 = getattribute self, '$!name'
45
# vim: expandtab shiftwidth=4 ft=pir: