method line
1 | class Code |
1.1 | (Code) method line |
2 | class CallFrame |
2.1 | (CallFrame) method line |
3 | role X::Comp |
3.1 | (X::Comp) method line |
4 | class Backtrace::Frame |
4.1 | (Backtrace::Frame) method line |
Documentation for method line
assembled from the following types:
class Code
From Code
(Code) method line
Defined as
method line(Code: --> Int)
Returns the line number in which the code object was declared.
say :<+>.line;
class CallFrame
From CallFrame
(CallFrame) method line
method line()
This is a shortcut for looking up the line
annotation. For example, the following two calls are identical.
say callframe(1).line;say callframe(1).annotations<line>;
role X::Comp
From X::Comp
(X::Comp) method line
The line number in which the compilation error occurred.
class Backtrace::Frame
From Backtrace::Frame
(Backtrace::Frame) method line
Defined as:
method line(Backtrace::Frame --> Int)
Returns the line number (line numbers start counting from 1).
my = Backtrace.new;my = [0];say .line;