Skip to content

Conversation

@ratmice
Copy link
Collaborator

@ratmice ratmice commented May 30, 2025

I'm not sure if we want this change, Previously/historically GrammarAST::new() has been pub.

However, there is nothing pub really takes a GrammarAST as a parameter and returns a YaccGrammar. Another possible use would be if they were (at least) PartialEq or PartialOrd, but it doesn't derive anything but debug.

Everything else is basically a self parameter.

My recent changes adding the unstable grammar_ast() function to CTParserBuilder don't actually change this,
because that takes a ASTWithValidityInfo, and there is no way to go from a GrammarAST to that.

Anyways, it might be a good time to reevaluate whether we still want this pub or not.

@ltratt ltratt added this pull request to the merge queue May 31, 2025
Merged via the queue into softdevteam:master with commit 0a4a075 May 31, 2025
2 checks passed
@ratmice ratmice deleted the grammarast_new_visibility branch May 31, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants