I want to be able to "reflect" function parameters and get their names, it should work for destructured object parameters as well, example
parseParams('({a, b}) => 1')
and I want the result to be something like
[["a", "b"]]
so here I know that that the function a first argument which is an object with keys a & b. I expect some code like this exists somewhere inside the guts of babel, but I can't find it easily