Skip to content

Commit

Permalink
docs: document recoveredNode property on CST Nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
bd82 committed Apr 11, 2020
1 parent 765938c commit 09afb8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/chevrotain/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,15 @@ export interface ICstVisitor<IN, OUT> {
export interface CstNode {
readonly name: string
readonly children: CstChildrenDictionary
/**
* A flag indicating the whole CSTNode has been recovered during **re-sync** error recovery.
* This means that some of the node's children may be missing.
* - Note that single token insertion/deletion recovery would not activate this flag.
* This flag would only be activated in **re-sync** recovery when the rule's
* grammar cannot be fully parsed.
* - See: https://sap.github.io/chevrotain/docs/tutorial/step4_fault_tolerance.html
* for more info on error recovery and fault tolerance.
*/
readonly recoveredNode?: boolean

/**
Expand Down

0 comments on commit 09afb8d

Please sign in to comment.