File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ = begin pod
2
+
3
+ = TITLE class Backtrace::Frame
4
+
5
+ class Backtrace::Frame { }
6
+
7
+ A single backtrace frame. It identifies a location in the source code.
8
+
9
+ = head1 Methods
10
+
11
+ = head2 file
12
+
13
+ method file(Backtrace::Frame:D) returns Str
14
+
15
+ Returns the file name.
16
+
17
+ = head2 line
18
+
19
+ method line(Backtrace::Frame:D) returns Int
20
+
21
+ Returns the line number (line numbers start to count from 1).
22
+
23
+ = head2 code
24
+
25
+ method code(Backtrace::Frame:D)
26
+
27
+ Returns the code object into which C < .file > and C < .line > point, if avaialble.
28
+
29
+ = head2 subname
30
+
31
+ method subname(Backtrace::Frame:D) returns Str
32
+
33
+ Returns the name of the enclosing subroutine.
34
+
35
+ = head2 is-hidden
36
+
37
+ method is-hidden(Backtrace::Frame:D) return Bool:D
38
+
39
+ Returns C < True > if the frame is marked as hidden with the
40
+ C < is hidden_from_backtrace > trait.
41
+
42
+ = head2 is-routine
43
+
44
+ method is-routine(Backtrace::Frame:D) return Bool:D
45
+
46
+ Return C < True > if the frame point into a routine (and not
47
+ into a mere L < Block > ).
48
+
49
+ = head2 is-setting
50
+
51
+ method is-setting(Backtrace::Frame:D) return Bool:D
52
+
53
+ Returns C < True > if the frame is part of a setting.
54
+
55
+ = end pod
You can’t perform that action at this time.
0 commit comments