Thank you camille,
I still don't fully understand, why it is so hard to make it work for all use cases.
It looks like a simple thing, make a sourceNode for the current context!
So for me it looks like the main problem is to distinguish these cases:
Create a SourceNode for
a) Method or
b) Block or
c) MethodContext or
d) BlockContext
and at the moment we are mixing case c/d/b
Thank you ben, for finding/looking at the failing tests.
(I wished we would have an improved debugger, showing
sourcecode, AST, IR and bytecode linked together :-)