Skip to content

Commit 8934227

Browse files
committed
Add missing Rakudo warnings to MOP type docs, move to top of page
1 parent cc2557c commit 8934227

21 files changed

+65
-18
lines changed

doc/Type/Metamodel/AttributeContainer.pod6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
77
role Metamodel::AttributeContainer {}
88
9+
I<Warning>: this role is part of the Rakudo implementation, and is not
10+
a part of the language specification.
11+
912
Classes, roles and grammars can have attributes. Storage and introspection of
1013
attributes is implemented by this role.
1114

doc/Type/Metamodel/C3MRO.pod6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
77
role Metamodel::C3MRO { }
88
9+
I<Warning>: this role is part of the Rakudo implementation, and is not
10+
a part of the language specification.
11+
912
L<Metamodel|/language/mop> role for the
1013
L<I<C3> method resolution order (MRO)|https://en.wikipedia.org/wiki/C3_linearization>.
1114
I<Note>: this method,

doc/Type/Metamodel/ClassHOW.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
does Metamodel::Finalization
3030
{ }
3131
32+
I<Warning>: this class is part of the Rakudo implementation, and is not
33+
a part of the language specification.
34+
3235
C<Metamodel::ClassHOW> is the metaclass behind the C<class> keyword.
3336
3437
say so Int.HOW ~~ Metamodel::ClassHOW; # OUTPUT: «True␤»
3538
say Int.^methods(:all).pick.name; # OUTPUT: «random Int method name␤»
3639
37-
I<Warning>: This class is part of the Rakudo implementation, not a part of the
38-
language itself.
39-
4040
=head1 Methods
4141
4242
=head2 method add_fallback

doc/Type/Metamodel/ConcreteRoleHOW.pod6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
does Metamodel::ArrayType
1717
does Metamodel::Concretization {}
1818
19+
I<Warning>: this class is part of the Rakudo implementation, and is not
20+
a part of the language specification.
21+
1922
You can use this to build roles, in the same way that C<ClassHOW> can be used to
2023
build classes:
2124

doc/Type/Metamodel/CurriedRoleHOW.pod6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
does Metamodel::TypePretense
1010
does Metamodel::RolePunning {}
1111
12+
I<Warning>: this class is part of the Rakudo implementation, and is not
13+
a part of the language specification.
14+
1215
Sometimes, we see references to roles that provide parameters but
1316
do not fully resolve them. For example, in:
1417

doc/Type/Metamodel/Documenting.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
77
role Metamodel::Documenting { }
88
9+
I<Warning>: this role is part of the Rakudo implementation, and is not
10+
a part of the language specification.
11+
912
Type declarations may include declarator blocks (C<#|> and C<#=>), which allow
1013
you to set the type's documentation. This can then be accessed through the
1114
C<WHY> method on objects of that type:
@@ -47,9 +50,6 @@ through their HOW like this, as C<Metamodel::Documenting>'s methods are
4750
exposed through L<Mu|/type/Mu> via its C<WHY> and C<set_why> methods,
4851
which are usable on types in most cases.
4952
50-
I<Warning>: This role is part of the Rakudo implementation, not a part
51-
of the language itself.
52-
5353
=head1 Methods
5454
5555
=head2 method set_why

doc/Type/Metamodel/EnumHOW.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
does Metamodel::Mixins
2323
{ }
2424
25+
I<Warning>: this class is part of the Rakudo implementation, and is not
26+
a part of the language specification.
27+
2528
C<Metamodel::EnumHOW> is the metaclass behind the C<enum> keyword.
2629
2730
enum Numbers <1 2>;
@@ -49,9 +52,6 @@ Is roughly equivalent to this code using C<Metamodel::EnumHOW>'s methods:
4952
OUR::<Error> := Error;
5053
}
5154
52-
I<Warning>: This class is part of the Rakudo implementation, and is not a part
53-
of the language specification.
54-
5555
=head1 Methods
5656
5757
=head2 method new_type

doc/Type/Metamodel/Finalization.pod6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ X<|DESTROY metamodel>
88
99
role Metamodel::Finalization { ... }
1010
11+
I<Warning>: this role is part of the Rakudo implementation, and is not
12+
a part of the language specification.
13+
1114
This role takes care that C<DESTROY> submethods are called (if they
1215
exist) when an object is garbage-collected.
1316

doc/Type/Metamodel/MROBasedMethodDispatch.pod6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
77
role Metamodel::MROBasedMethodDispatch { }
88
9+
I<Warning>: this role is part of the Rakudo implementation, and is not
10+
a part of the language specification.
11+
912
This role implements locating methods based on the method resolution order of
1013
related (usually "super"/"parent") types.
1114

doc/Type/Metamodel/MethodContainer.pod6

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
77
role Metamodel::MethodContainer {}
88
9-
roles, classes, grammars and enums can contain methods. This role implements
9+
I<Warning>: this role is part of the Rakudo implementation, and is not
10+
a part of the language specification.
11+
12+
Roles, classes, grammars and enums can contain methods. This role implements
1013
the API around storing and introspecting them.
1114
1215
say .name for Int.^methods(:all);

0 commit comments

Comments
 (0)