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

Autocompletion: Analyze CLASS types as they are encountered #91653

Conversation

HolonProduction
Copy link
Contributor

Supersedes #84266

Second part of fixing #78003 (can be closed if #84264 was already merged)

When _guess_expression_types encounters a CLASS type that was not analysed before it will now fully analyse it before returning the type. Compared to #84266 this moves the recursive approach to the autocompletion code, and leaves the parser as is. This reduces the possibility to introduce cyclic reference issues with that.

This shouldn't lead to infinite loops as the analysing is still shallow and the autocompletion already has save guards for recursion limits.

Copy link
Member

@vnen vnen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akien-mga akien-mga merged commit 4ce95d6 into godotengine:master May 19, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants