1 unstable release

0.1.0 Aug 26, 2024

#1130 in Procedural macros

MIT license

14KB
397 lines

syn-dissect-closure

Having a closure input in proc macro, you may want to know, which of the inner locals are captured from the environment.

Most of this code was taken from serde-closure crate proc-macro, updated to newer syn, and then made into a library to perform other tasks.

TODO

Rename self in closure: Capturing self results in self reference in generated closure and pattern with the same name, it should be renamed to _self in closure, and then captured as-is.

Dependencies

~245–690KB
~17K SLoC