Repository navigation
Rework GDScriptExtendParser into LSPParseResult and don't use inheritance - #123547
Open
HolonProduction wants to merge 1 commit into
Open
HolonProduction wants to merge 1 commit into
HolonProduction wants to merge 1 commit into
Conversation
HolonProduction
force-pushed
the
dont-extend-parser
branch
from
September 16, 2026 12:28
ff09487 to
31446ac
Compare
Member
|
Should it not be named |
HolonProduction
force-pushed
the
dont-extend-parser
branch
from
September 17, 2026 18:56
31446ac to
69942fa
Compare
GDScriptExtendParser into LspParseResult and don't use inheritanceGDScriptExtendParser into LSPParseResult and don't use inheritance
Ivorforce
approved these changes
Nov 24, 2026
Ivorforce
left a comment
Member
There was a problem hiding this comment.
Looks generally good, but I'd separate the AST change.
| #include "gdscript_language_protocol.h" | ||
| #include "gdscript_workspace.h" | ||
|
|
||
| using AST = GDScriptParser; |
Member
There was a problem hiding this comment.
Why this? It seems unrelated to the PR and causes most of the churn. I'd rather sign it off separately.
Member
Author
There was a problem hiding this comment.
The change already had a lot of churn from adding missing GDScriptParser:: qualifications, so I felt doing it now was better then churning through the full file again later.
But when I made this I was planing to slowly trickle the rename in. With #125641 it doesn't really matter either way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem(s) does this PR solve?
GDScriptParserGDScriptParserhas subclasses has been an issue for something I'm working on (reworking ownership and management of external parser i.e. replacingGDScriptParserRef) and it made sense to split this out since it is a self contained change.Additional information
I've started addressing AST nodes using an
ASTtypedef (soAST::ClassNodeoverGDScriptParser::ClassNode). This IMO helps with readability.