-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
bug in setPosition #1636
Comments
it is normal because |
So, Is it possible to get first non-implicit element, to get it's position? |
This may be the bug. The implicit blocks should have the position of their contained statement. |
Here is a workaround:
|
I would say that the implicit element does not have position of parent, but position of all children? |
I would say that the implicit element does not have position of parent, but position of all children?
I agree, this should be the contract.
|
what does it mean for implicit constructors, where all the children are implicit? what does it mean for implicit |
good questions!
I'd say we don't have to support the position of all implicit elements but at least those for which
we have a good answer, such as implicit blocks.
|
from @Egor18
Also I probably have found some issue with
getPosition()
method.Consider the following code:
When I'm trying to get positions this way:
It outputs:
But if I change source code to this:
It works fine:
To bypass this issue I have to use this trick:
It would be great to have it fixed :)
Thank you.
The text was updated successfully, but these errors were encountered: