Documentation for method file
assembled from the following pages:
Class: CallFrame §
From CallFrame
(CallFrame) method file §
method file()
This is a shortcut for looking up the file
annotation. Therefore, the following code prints True
.
my = callframe(0);say .file eq .annotations<file>;
Class: Backtrace::Frame §
From Backtrace::Frame
(Backtrace::Frame) method file §
Defined as:
method file(Backtrace::Frame --> Str)
Returns the file name.
my = Backtrace.new;my = [0];say .file;
Class: Code §
From Code
(Code) method file §
Defined as:
method file(Code: --> Str)
Returns the name of the file in which the code object was declared.
say :<+>.file; # OUTPUT: «SETTING::src/core.c/Numeric.pm6»
Class: Label §
From Label
(Label) method file §
Returns the file the label is defined in.