txt: ## code.md
  code
  
  Combined from primary sources listed below.
  
  # [In CallFrame](#___top "go to top of document")[§](#(CallFrame)_method_code "direct link")
  
  See primary documentation
  [in context](/type/CallFrame#method_code)
  for **method code**.
  
  ```raku
  method code()
  ```
  
  Return the callable code for the current block. When called on the object returned by `callframe(0)`, this will be the same value found in [`&?BLOCK`](/language/variables#Compile-time_variables).
  
  ```raku
  my $frame;
  for ^3 { FIRST $frame = callframe; say $_ * 3 };
  say $frame.code()
  
  ```
  
  The `$frame` variable will hold the [`Code`](/type/Code) for the block inside the loop in this case.
  
  # [In Backtrace::Frame](#___top "go to top of document")[§](#(Backtrace::Frame)_method_code "direct link")
  
  See primary documentation
  [in context](/type/Backtrace/Frame#method_code)
  for **method code**.
  
  ```raku
  method code(Backtrace::Frame:D)
  ```
  
  Returns the code object into which `.file` and `.line` point, if available.
  
  ```raku
  my $bt = Backtrace.new;
  my $btf = $bt[0];
  say $btf.code;
  ```
  