1 unstable release

0.1.0 Aug 26, 2024

#1110 in Procedural macros

23 downloads per month

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

~255–710KB
~17K SLoC