Skip to content

Commit 9429392

Browse files
committed
Update Type files as per 1dfd619
1 parent 1dfd619 commit 9429392

File tree

108 files changed

+397
-397
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+397
-397
lines changed

lib/Type/Any.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ most built-in classes.
1010
1111
=head1 Methods
1212
13-
=head2 ACCEPTS
13+
=head2 method ACCEPTS
1414
1515
multi method ACCEPTS(Any:D: Mu $other)
1616
1717
Returns C<True> if C<$other === self> (i.e. it checks object identity).
1818
19-
=head2 any
19+
=head2 method any
2020
2121
Interprets the invocant as a list and creates an C<any>-Junction from it.
2222
23-
=head2 all
23+
=head2 method all
2424
2525
Interprets the invocant as a list and creates an C<all>-Junction from it.
2626
27-
=head2 one
27+
=head2 method one
2828
2929
Interprets the invocant as a list and creates an C<one>-Junction from it.
3030
31-
=head2 none
31+
=head2 method none
3232
3333
Interprets the invocant as a list and creates an C<none>-Junction from it.
3434

lib/Type/Attribute.pod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,33 @@ The usual way to obtain an object of type C<Attribute> is by introspection:
3030
3131
=head1 Methods
3232
33-
=head2 name
33+
=head2 method name
3434
3535
method name(Attribute:D:) returns Str:D
3636
3737
Returns the name of the attribute. Note that this is always the private name,
3838
so if an attribute is declared as C<has $.a>, the name returned is C<$!a>.
3939
40-
=head2 package
40+
=head2 method package
4141
4242
method package(Attribute:D:) returns Mu:U
4343
4444
Returns the package (class/grammar/role) to which this attribute belongs.
4545
46-
=head2 has-accessor
46+
=head2 method has-accessor
4747
4848
method has-accessor(Attribute:D:) returns Bool:D
4949
5050
Returns C<True> if the attribute has a public accessor method.
5151
52-
=head2 readonly
52+
=head2 method readonly
5353
5454
method readonly(Attribute:D:) returns Bool:D
5555
5656
Returns C<True> for readonly attributes, which is the default.
5757
Returns C<False> for attributes marked as C<is rw>.
5858
59-
=head2 get_value
59+
=head2 method get_value
6060
6161
method get_value(Attribute:D: Mu $instance)
6262
@@ -65,7 +65,7 @@ Returns the value stored in this attribute of object C<$instance>.
6565
Note that this method violates encapsulation of the object, and should be
6666
used with care. Here be dragons.
6767
68-
=head2 set_value
68+
=head2 method set_value
6969
7070
method set_value(Attribute:D: Mu $instance, Mu \new_val)
7171

lib/Type/Backtrace.pod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ example routines like C<&die> are hidden by default.
1313
1414
=head1 Methods
1515
16-
=head2 new
16+
=head2 method new
1717
1818
proto method new(*@, *%) {*}
1919
multi method new()
2020
2121
Creates a new backtrace, using its calling location as the origin of the
2222
backtrace.
2323
24-
=head2 Str
24+
=head2 method Str
2525
2626
multi method Str(Backtrace:D:) returns Str:D:
2727
2828
Returns a concise string representation of the backtrace, omitting
2929
routines marked as C<is hidden_from_backtrace>, and at the discretion of
3030
the implementor, also some routines from the setting.
3131
32-
=head2 full
32+
=head2 method full
3333
3434
3535
multi method full(Backtrace:D:) returns Str:D:

lib/Type/Backtrace/Frame.pod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,45 @@ A single backtrace frame. It identifies a location in the source code.
88
99
=head1 Methods
1010
11-
=head2 file
11+
=head2 method file
1212
1313
method file(Backtrace::Frame:D) returns Str
1414
1515
Returns the file name.
1616
17-
=head2 line
17+
=head2 method line
1818
1919
method line(Backtrace::Frame:D) returns Int
2020
2121
Returns the line number (line numbers start to count from 1).
2222
23-
=head2 code
23+
=head2 method code
2424
2525
method code(Backtrace::Frame:D)
2626
2727
Returns the code object into which C<.file> and C<.line> point, if avaialble.
2828
29-
=head2 subname
29+
=head2 method subname
3030
3131
method subname(Backtrace::Frame:D) returns Str
3232
3333
Returns the name of the enclosing subroutine.
3434
35-
=head2 is-hidden
35+
=head2 method is-hidden
3636
3737
method is-hidden(Backtrace::Frame:D) return Bool:D
3838
3939
Returns C<True> if the frame is marked as hidden with the
4040
C<is hidden_from_backtrace> trait.
4141
42-
=head2 is-routine
42+
=head2 method is-routine
4343
4444
method is-routine(Backtrace::Frame:D) return Bool:D
4545
4646
Return C<True> if the frame point into a routine (and not
4747
into a mere L<Block>).
4848
49-
=head2 is-setting
49+
=head2 method is-setting
5050
5151
method is-setting(Backtrace::Frame:D) return Bool:D
5252

lib/Type/Bag.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ mutable collection of weighted values, see L<BagHash>.
1212
1313
=head1 Operators
1414
15-
=head2 bag
15+
=head2 sub bag
1616
1717
sub bag(*@args --> Bag)
1818

lib/Type/Baggy.pod

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,32 @@ L<Mixy>.
99
1010
=head1 Methods
1111
12-
=head2 grab
12+
=head2 method grab
1313
14-
=head2 grabpairs
14+
=head2 method grabpairs
1515
16-
=head2 pick
16+
=head2 method pick
1717
18-
=head2 pickpairs
18+
=head2 method pickpairs
1919
20-
=head2 roll
20+
=head2 method roll
2121
22-
=head2 classify-list
22+
=head2 method classify-list
2323
24-
=head2 categorize-list
24+
=head2 method categorize-list
2525
26-
=head2 keys
26+
=head2 method keys
2727
28-
=head2 values
28+
=head2 method values
2929
30-
=head2 kv
30+
=head2 method kv
3131
32-
=head2 elems
32+
=head2 method elems
3333
34-
=head2 total
34+
=head2 method total
3535
36-
=head2 new-fp
36+
=head2 method new-fp
3737
38-
=head2 ACCEPTS
38+
=head2 method ACCEPTS
3939
4040
=end pod

lib/Type/Buf.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,31 @@ for example indexing into a C<Buf> with C<.[$idx]> returns an C<Int>.
1313
1414
=head1 Methods
1515
16-
=head2 new
16+
=head2 method new
1717
1818
method new(*@codes)
1919
2020
Creates a C<Buf> from a list of integers.
2121
22-
=head2 Bool
22+
=head2 method Bool
2323
2424
multi method Bool(Buf:D:)
2525
2626
Returns C<False> if and only if the buffer is empty.
2727
28-
=head2 elems
28+
=head2 method elems
2929
3030
multi method elems(Buf:D:) returns Int:D
3131
3232
Returns the number of elements of the buffer.
3333
34-
=head2 decode
34+
=head2 method decode
3535
3636
multi method decode(Buf:D: Str:D $encoding = 'UTF-8') returns Str:D
3737
3838
Applies an encoding to turn the buffer into a C<Str>.
3939
40-
=head2 subbuf
40+
=head2 method subbuf
4141
4242
method subbuf(Int $from, Int $len = self.elems) returns Buf:D
4343

lib/Type/Capture.pod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ into that parameter.
2424
2525
=head1 Methods
2626
27-
=head2 list
27+
=head2 method list
2828
2929
method list(Capture:D:) returns Positional
3030
3131
Returns the positional part of the Capture.
3232
33-
=head2 hash
33+
=head2 method hash
3434
3535
method hash(Capture:D:) returns Associative
3636
3737
Returns the named/hash part of the Capture.
3838
39-
=head2 elems
39+
=head2 method elems
4040
4141
method elems(Capture:D:) returns Int:D
4242

lib/Type/Code.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from blocks, subroutines or methods) will be of some subclass of C<Code>.
1212
1313
=head1 Methods
1414
15-
=head2 ACCEPTS
15+
=head2 method ACCEPTS
1616
1717
multi method ACCEPTS(Code:D: Mu $topic)
1818
@@ -21,7 +21,7 @@ However, when called on a code object that takes no arguments, the code
2121
object is invoked with no arguments and C<$topic> is dropped. The
2222
result of the call is returned.
2323
24-
=head2 arity
24+
=head2 method arity
2525
2626
method arity(Code:D:) returns Int:D
2727
@@ -36,7 +36,7 @@ code object's C<Signature> do not contribute, nor do named parameters.
3636
say &args.arity; # 1
3737
say &slurpy.arity; # 2
3838
39-
=head2 count
39+
=head2 method count
4040
4141
method count(Code:D:) returns Real:D
4242
@@ -52,14 +52,14 @@ C<count> will return C<Inf>. Named parameters do not contribute.
5252
say &args.count; # 2
5353
say &slurpy.count; # Inf
5454
55-
=head2 signature
55+
=head2 method signature
5656
5757
multi method signature(Code:D:) returns Signature:D
5858
5959
Returns the C<Signature> object for this code object, which describes
6060
its parameters.
6161
62-
=head2 Str
62+
=head2 method Str
6363
6464
multi method Str(Code:D:) returns Str:D
6565

lib/Type/Complex.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,32 @@ Adding a trailing C<i> to a number literal makes it a Complex, for example:
1515
1616
=head1 Methods
1717
18-
=head2 new
18+
=head2 method new
1919
2020
proto method new(*@, *%) {*} returns Complex:D
2121
multi method new(Real $re, Real $im) returns Complex:D
2222
2323
Creates a new C<Complex> object from real and imaginary parts.
2424
25-
=head2 re
25+
=head2 method re
2626
2727
method re(Complex:D:) returns Real:D
2828
2929
Returns the real part of the complex number.
3030
31-
=head2 im
31+
=head2 method im
3232
3333
method im(Complex:D:) returns Real:D
3434
3535
Returns the imaginary part of the complex number.
3636
37-
=head2 isNaN
37+
=head2 method isNaN
3838
3939
method isNaN(Complex:D:) returns Bool:D
4040
4141
Returns true if the real or imaginary part is C<NaN> (not a number).
4242
43-
=head2 polar
43+
=head2 method polar
4444
4545
method polar(Complex:D:) returns Positional:D
4646

0 commit comments

Comments
 (0)