Skip to main content

Module Inline

Module Inline 

Source

StructsΒ§

Eliminator
Substitutor πŸ”’

FunctionsΒ§

BlockShadowsTarget πŸ”’
ClosureParamShadows πŸ”’
ExprToTokenStream πŸ”’
FindSubstSite
Return the index within Stmts of the first statement that contains a reference to Target. Returns Stmts.len() (one past end) when not found, which causes StmtsBetween to be the full slice - the conservative safe choice.
IsTargetIdent πŸ”’
NeedsParen πŸ”’
SubstituteInTokenStream πŸ”’
SubstituteRef
Replace the first occurrence of Target (as a plain identifier expression OR as an identifier token inside a macro’s token stream) in Stmts with Replacement. Returns true when the substitution was performed.