Comment by @huon
Have you tried to catch ItemKind :: Mod in github.com/llogiq/flamer/blob / ... and repeat its contents (recursively)?
there was a spot on - I just added a fixation that handles trendy and roady elements while skipping them. I will also probably add code for functions to handle internal elements and fns.
The code is as follows:
fn flame_item(i: &Item) -> Item { let base = i.clone(); Item { node: match i.node { ItemKind::Mod(ref m) => ItemKind::Mod(flame_mod(m)), ItemKind::Trait(unsafety, ref generic, ref bounds, ref tis) => ItemKind::Trait(unsafety, generic.clone(), bounds.clone(), flame_items(tis)), ..
source share