For the given pointcut:
contribute(bind(var:assignedVariable(name()))) { ... }
The following use cases work as expected:
def foo = |
or
def foo = { bar { | } }
But this one does not work
def foo = { | }
The problem is that enclosingAssignment wormhole state is set up too late, and should be set before visiting the closure expression. The fix PR is coming.
For the given pointcut:
contribute(bind(var:assignedVariable(name()))) { ... }The following use cases work as expected:
def foo = |or
def foo = { bar { | } }But this one does not work
def foo = { | }The problem is that enclosingAssignment wormhole state is set up too late, and should be set before visiting the closure expression. The fix PR is coming.