Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSLD: AssignedVariable pointcut does not match at a start of an assigned closure #598

Closed
ybayk opened this issue Jun 7, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@ybayk
Copy link

ybayk commented Jun 7, 2018

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.

@ybayk
Copy link
Author

ybayk commented Jun 8, 2018

PR: #599

eric-milles added a commit that referenced this issue Jun 9, 2018
@eric-milles eric-milles added this to the v3.0.0 milestone Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants