Skip to content

Commit

Permalink
Reflow and adapts definitions, refs #2719
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Apr 18, 2019
1 parent 10db477 commit 098a505
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions doc/Type/CallFrame.pod6
Expand Up @@ -68,13 +68,15 @@ B<Note> From version 6.d, C<.perl> can be called on C<CallFrame>.
=head2 method code
method code(CallFrame:D:)
method code()
Return the callable code for the current block. When called on the object returned by C<callframe(0)>, this will be the same value found in L«C<&?BLOCK>|/language/variables#Compile-time_variables».
Return the callable code for the current block. When called on the object
returned by C<callframe(0)>, this will be the same value found in
L«C<&?BLOCK>|/language/variables#Compile-time_variables».
=head2 method file
method file(CallFrame:D:)
method file()
This is a shortcut for looking up the C<file> annotation. Therefore, the
following code prints C<True>.
Expand All @@ -84,7 +86,7 @@ following code prints C<True>.
=head2 method line
method line(CallFrame:D:)
method line()
This is a shortcut for looking up the C<line> annotation. For example, the
following two calls are identical.
Expand All @@ -94,7 +96,7 @@ following two calls are identical.
=head2 method annotations
method annotations(--> Map:D)
method annotations()
Returns a L<Map|/type/Map> containing the invocants annotations, i.e. C<line>
and C<file>. An easier way to get hold of the annotation information is to use
Expand All @@ -106,7 +108,7 @@ one of the convenience methods instead.
=head2 method my
method my(CallFrame:D:)
method my()
Return a L<Hash|/type/Hash> that names all the variables and their values
associated with the lexical scope of the frame.
Expand All @@ -123,11 +125,14 @@ associated with the lexical scope of the frame.
=head2 sub callframe
sub callframe(Int $level = 0)
sub callframe(Int:D $level = 0)
Returns a L<CallFrame|/type/CallFrame> object for the given level. If no level is given, the default level is 0. Positive levels move up the frame stack and negative levels move down (into the call to C<callframe> and deeper).
Returns a L<CallFrame|/type/CallFrame> object for the given level. If no level
is given, the default level is 0. Positive levels move up the frame stack and
negative levels move down (into the call to C<callframe> and deeper).
Returns L<Mu|/type/Mu> if there is no call information for the given level. (Negative levels may result in an exception.)
Returns L<Mu|/type/Mu> if there is no call information for the given level.
(Negative levels may result in an exception.)
=end pod

Expand Down

0 comments on commit 098a505

Please sign in to comment.