Skip to content

[Feature request] Surface in CST if _any_ nodes are recovered nodes #1232

@matthew-dean

Description

@matthew-dean

Use case: when recoveryEnabled is set to true, 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions