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: Change parser representation of class extends #74844

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

vonagam
Copy link
Contributor

@vonagam vonagam commented Mar 12, 2023

So extends now is Vector<IdentifierNode *> instead of Vector<StringName> for better error placement.

Fixed one error in resolve_class_inheritance not having vformat applied to its message so it showed "%s" in output:

Super type "%s" is not a GDScript. Cannot get nested types.

And one error missing return ERR_PARSE_ERROR, though I don't think it matters much. Added tests for those errors. (Had to remove from base "%s" part from second message because it was always just "GDScript", which is not helpful.)

Extracted from #74618.

@vonagam vonagam requested a review from a team as a code owner March 12, 2023 23:47
@YeldhamDev YeldhamDev added this to the 4.x milestone Mar 13, 2023
@YuriSizov YuriSizov modified the milestones: 4.x, 4.1 Mar 20, 2023
@YuriSizov YuriSizov merged commit 5461b99 into godotengine:master Mar 20, 2023
@YuriSizov
Copy link
Contributor

Thanks!

@vonagam vonagam deleted the change-class-extends-parsing branch March 20, 2023 18:13
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