Expand description
Utility methods for processing singleton references: #my_var.
Functionsยง
- postprocess_
singletons - Replaces singleton references
#my_varwith the code needed to actually get the value inside. - postprocess_
singletons_ handles - Same as
postprocess_singletonsbut generates just theStateHandleident rather than fullRefCellborrowing code. - preprocess_
singletons - Finds all the singleton references
#my_varand appends them tofound_idents. Returns theTokenStreambut with the hashes removed from the varnames.