Module dfir_lang::process_singletons
source · Expand description
Utility methods for processing singleton references: #my_var
.
Functions§
- Replaces singleton references
#my_var
with the code needed to actually get the value inside. - Same as
postprocess_singletons
but generates just theStateHandle
ident rather than fullRefCell
borrowing code. - Finds all the singleton references
#my_var
and appends them tofound_idents
. Returns theTokenStream
but with the hashes removed from the varnames.