Is someone out there familiar with IronPython internals, specifically with PythonAst and LanguageContext classes ?
My application does compile a Python script source and then look into PythonAst to find variables. While I can successfully find global variables, I am unable to get functions' local variables. Is it possible somehow ?
Another question would be to also find the current type of a variable as it can be inferred from the compiled code as well as its current value ?
After a script was executed I can use the ScriptScope structure, or at debug time I can parse a debug frame for variables and theirs value, but I would like to do it at compile time also, as the user constructs the code. Is this possible at all ?
Thanks.
What I have tried:
Tried enumerating Variables dictionary in PythonAst class, but it only contains globals.