Skip to content

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

@ybayk

Description

@ybayk

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions