txt: ## file.md
  file
  
  Combined from primary sources listed below.
  
  # [In CallFrame](#___top "go to top of document")[§](#(CallFrame)_method_file "direct link")
  
  See primary documentation
  [in context](/type/CallFrame#method_file)
  for **method file**.
  
  ```raku
  method file()
  ```
  
  This is a shortcut for looking up the `file` annotation. Therefore, the following code prints `True`.
  
  ```raku
  my $frame = callframe(0);
  say $frame.file eq $frame.annotations<file>;
  ```
  
  # [In Backtrace::Frame](#___top "go to top of document")[§](#(Backtrace::Frame)_method_file "direct link")
  
  See primary documentation
  [in context](/type/Backtrace/Frame#method_file)
  for **method file**.
  
  ```raku
  method file(Backtrace::Frame:D --> Str)
  ```
  
  Returns the file name.
  
  ```raku
  my $bt = Backtrace.new;
  my $btf = $bt[0];
  say $btf.file;
  ```
  
  # [In Label](#___top "go to top of document")[§](#(Label)_method_file "direct link")
  
  See primary documentation
  [in context](/type/Label#method_file)
  for **method file**.
  
  Returns the file the label is defined in.
  
  # [In Code](#___top "go to top of document")[§](#(Code)_method_file "direct link")
  
  See primary documentation
  [in context](/type/Code#method_file)
  for **method file**.
  
  ```raku
  method file(Code:D: --> Str:D)
  ```
  
  Returns the name of the file in which the code object was declared.
  
  ```raku
  say &infix:<+>.file;   # OUTPUT: «SETTING::src/core.c/Numeric.rakumod␤»
  ```
  