Get the value from LocalTVars

Is it possible to get the values of a local variable in a macro from Context.getLocalTVars();?

Values exist only at runtime, so no. As a rule, it’s impossible.

The enclosing typed expression contains TVar nodes that contain the initial values, if those are the ones that interest you, but you cannot get them, because that enclosing expression is currently being typed.

So if that is what you’re after, I’m reasonable sure you’ll have to request it via the GitHub issue tracker :wink:

1 Like