Add VariableDefinition.getMethod() getter

Issue #298 resolved
Tagir Valeev
created an issue

It would be great to have very simple addition to com.strobel.assembler.metadata.VariableDefinition class: a getter for _declaringMethod field. Name could be either getMethod() or getDeclaringMethod(). I need it to distinguish whether the variable is defined in the current lambda or it's the closure variable from the enclosing method. Currently I'm using dirty reflection to read the private field which is not very nice.

Comments (1)

  1. Log in to comment