syn-dissect-closure 0.1.0

Analyze syn ExprClosure body
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
= 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.