-
Notifications
You must be signed in to change notification settings - Fork 200
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
[Feature request] Surface in CST if _any_ nodes are recovered nodes #1232
Comments
Let me phrase this a different way, since I may not fully understand Some errors, however, indicate that parsing simply failed entirely. For example: So I'm looking for an indicator of the following: was all input saved to the CST? Or were some tokens not saved? |
Hmm, |
Perhaps you should try to examine this condition in a more "direct" manner by overloading You will have to to inspect the source code to be certain this condition is indeed correct, meaning that
|
Use case: when
recoveryEnabled
is set totrue
, it's hard to tell from the returned CST if any of the nodes are recovered nodes, without iterating through nodes. In other words, were any tokens "dropped" or skipped.The presence of errors is not sufficient, because I'm still consuming (error) tokens that will still result in a complete CST (and resulting AST), and I (incorrectly) assumed that
recoveredNode
would be equal to true if any of the nodes within were recovered nodes, but apparently that's not the case?The text was updated successfully, but these errors were encountered: