Documentation for method file, assembled from the following types:
method file(Backtrace::Frame --> Str)
Returns the file name.
my = Backtrace.new;my = ;say .file;
method file(Code: --> Str)
Returns the name of the file in which the code object was declared.
This is a shortcut for looking up the
file annotation. Therefore, the following code prints
my = callframe(0);say .file eq .annotations<file>;