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

GDScript: Rework type and member resolution #68086

Closed

Conversation

rune-scape
Copy link
Contributor

@rune-scape rune-scape commented Oct 31, 2022

allows true out of order member resolution
resolve_datatype() uses reduce_identifier_from_base() to reduce duplicated code and improve errors.
parser uses TypeNode when parsing extends, to reduce duplicated code and improve errors.
changed filesystem cache separator, because it clashes with GDScript inner class separators "::" > ":|:" (maybe it should be changed to json or something)

@rune-scape
Copy link
Contributor Author

The main problem right now is that scripts don't get added to ScriptServer::global_classes even if they compile without error, i'll come back to this in a week or so, but i have notifications on

@rune-scape rune-scape force-pushed the rune-simplify-extends branch from 7ddc1ac to 5c5c73b Compare November 8, 2022 23:07
@rune-scape rune-scape changed the title GDScript: Simplify extends GDScript: Simplify extends and resolve_datatype() Nov 8, 2022
@rune-scape rune-scape force-pushed the rune-simplify-extends branch from 5c5c73b to 897cbcf Compare November 13, 2022 05:52
@bitbrain
Copy link
Contributor

@rune-scape make sure to squash all your commits into one.

@rune-scape rune-scape force-pushed the rune-simplify-extends branch 3 times, most recently from cc15fd0 to fd4fde3 Compare November 15, 2022 07:53
@rune-scape rune-scape changed the title GDScript: Simplify extends and resolve_datatype() GDScript: Rework type and member resolution Nov 15, 2022
@rune-scape rune-scape force-pushed the rune-simplify-extends branch from fd4fde3 to 76132ed Compare November 19, 2022 09:08
# Conflicts:
#	modules/gdscript/gdscript_analyzer.cpp
@rune-scape
Copy link
Contributor Author

this is bloated, im splitting it into multiple PRs and this one will go back to reworking datatype resolution

@rune-scape
Copy link
Contributor Author

actually i'm closing this as it's replacement will look completely different and be much smaller

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.

4 participants