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

Parser: Properly set node extents #62918

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

cdemirer
Copy link
Contributor

Fixes (4.0) #38851
Fixes (4.0) #43286

The fix in #62690 was correct, but it still didn't work for these cases. The reason is that GDScriptParser::Node's end_line member (and a few more) wasn't set properly / was TODO. This PR sets them to expectable values, which fixes (in 4.0) the aforementioned bugs (in combination with #62690).

This would also allow for more precise error/warning highlights in the future.

@vnen vnen merged commit 87ef6f5 into godotengine:master Jul 13, 2022
@vnen
Copy link
Member

vnen commented Jul 13, 2022

Thanks!

@cdemirer cdemirer deleted the parser-properly-set-node-extents branch July 13, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants