Interface ISyntacticContentAssistPath

Structure for the path the parser "took" to reach a certain position in the grammar.

interface ISyntacticContentAssistPath {
    nextTokenOccurrence: number;
    nextTokenType: TokenType;
    occurrenceStack: number[];
    ruleStack: string[];
}

Hierarchy (view full)

Properties

nextTokenOccurrence: number
nextTokenType: TokenType
occurrenceStack: number[]

The occurrence index (SUBRULE1/2/3/5/...) of each Grammar rule invoked and still unterminated. Used to distinguish between different invocations of the same subrule at the same top level rule.

ruleStack: string[]

The Grammar rules invoked and still unterminated to reach this Grammar Path.