@@ -32,10 +32,11 @@ Relations between the C<RakuAST::Doc::> classes:
32
32
\- RakuAST::Doc::Block
33
33
34
34
Note that this structure is recursive with regards to the
35
- C<RakuAST::Doc::Block> object (which can occur as an element
36
- of the paragraphs of a C<RakuAST::Doc::Block>), and the
37
- C<RakuAST::Doc::Markup> object (which can occur as an element
38
- of the atoms of a C<RakuAST::Doc::Markup>).
35
+ L«C<RakuAST::Doc::Block>|/type/RakuAST/Doc/Block» object (which can
36
+ occur as an element of the paragraphs of a C<RakuAST::Doc::Block>),
37
+ and the L«C<RakuAST::Doc::Markup>|/type/RakuAST/Doc/Markup» object
38
+ (which can occur as an element of the atoms of a
39
+ C<RakuAST::Doc::Markup>).
39
40
40
41
=head2 class RakuAST::Doc::Block
41
42
@@ -46,22 +47,23 @@ of a string (which implies there is no extra markup in there) or
46
47
a C<RakuAST::Doc::Paragraph> object, or another C<RakuAST::Doc::Block>
47
48
in the case of C<RakuDoc> blocks embedding other blocks.
48
49
49
- A C<RakuAST::Doc::Block> typically occurs in C<RakuAST::StatementList>
50
- objects when it is the result of parsing Raku Programming Language
51
- code, or C<RakuDoc> documentation.
50
+ A C<RakuAST::Doc::Block> typically occurs in
51
+ L«C<RakuAST::StatementList>|/type/RakuAST/StatementList» objects when
52
+ it is the result of parsing Raku Programming Language code, or
53
+ C<RakuDoc> documentation.
52
54
53
55
=head2 class RakuAST::Doc::Paragraph
54
56
55
- The C<RakuAST::Doc::Paragraph> object contains the information about
56
- the atoms that constitute the paragraph. Each atom may be either a
57
- string or a C<RakuAST::Doc::Markup> object.
57
+ The L« C<RakuAST::Doc::Paragraph>|/type/RakuAST/Doc/Paragraph» object
58
+ contains the information about the atoms that constitute the paragraph.
59
+ Each atom may be either a string or a C<RakuAST::Doc::Markup> object.
58
60
59
61
=head2 class RakuAST::Doc::Markup
60
62
61
- The C<RakuAST::Doc::Markup> object contains the information about
62
- a markup atom, and itself contains a list of atoms. Each atom may
63
- be either a string or a C<RakuAST::Doc::Markup> object in the case
64
- of embedded markup.
63
+ The L« C<RakuAST::Doc::Markup>|/type/RakuAST/Doc/Markup» object contains
64
+ the information about a markup atom, and itself contains a list of
65
+ atoms. Each atom may be either a string or a C<RakuAST::Doc::Markup>
66
+ object in the case of embedded markup.
65
67
66
68
=head2 EXAMPLE
67
69
@@ -105,15 +107,15 @@ is represented in C<RakuAST::Doc::> objects like this:
105
107
106
108
=head2 class RakuAST::Doc::Declarator
107
109
108
- The C<RakUAST ::Doc::Declarator> object contains the leading and
109
- trailing documentation of a C<RakuAST> object doing the
110
- C<RakuAST::Doc::DeclaratorTarget> role.
110
+ The L«C<RakuAST ::Doc::Declarator>|/type/RakuAST/Doc/Declarator»
111
+ object contains the leading and trailing documentation of a
112
+ C<RakuAST> object doing the C<RakuAST ::Doc::DeclaratorTarget> role.
111
113
112
114
=head2 role RakuAST::Doc::DeclaratorTarget
113
115
114
- The C<RakuAST::Doc::DeclaratorTarget> role is done by C< RakuAST>
115
- objects that allow leading and/or trailing documentation when
116
- used in Raku source code.
116
+ The L« C<RakuAST::Doc::DeclaratorTarget>|/type/ RakuAST/Doc/DeclaratorTarget»
117
+ role is done by C<RakuAST> objects that allow leading and/or trailing
118
+ documentation when used in Raku source code.
117
119
118
120
=head2 EXAMPLE
119
121
@@ -144,8 +146,8 @@ C<.declarator-docs> call.
144
146
145
147
This is needed to create a single-statement representation
146
148
of the target object (in this case the
147
- C<RakuAST::VarDeclaration::Simple> object) and its associated
148
- C<RakuAST::Doc::Declarator> object.
149
+ L« C<RakuAST::VarDeclaration::Simple>|/type/RakuAST/VarDeclaration/Simple»
150
+ object) and its associated C<RakuAST::Doc::Declarator> object.
149
151
150
152
That is because objects doing the C<RakuAST::Doc::DeclaratorTarget>
151
153
refer to the associated C<RakuAST::Doc::Declarator> object in
0 commit comments