This is more of a question than a bug or an error...not quite understanding the meaning of occurrenceStack returned as part of ISyntacticContentAssistPath[] from computeContentAssist().
The source code says:
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.
So I don't understand how it can be an array like this:
[1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0]
If the rule at index 4 is unterminated, then why are the preceding rules also not indicated as unterminated?
For context, here is one of the elements of the array:
This is more of a question than a bug or an error...not quite understanding the meaning of
occurrenceStack
returned as part ofISyntacticContentAssistPath[]
fromcomputeContentAssist()
.The source code says:
So I don't understand how it can be an array like this:
If the rule at index
4
is unterminated, then why are the preceding rules also not indicated as unterminated?For context, here is one of the elements of the array:
1
corresponds tobooleanExpression
, and2
toadditionExpression
, defined like this:(actually think that rule has a bug in it, just noticed 🤣)
So if
additionExpression
is unterminated, why is the precedingcomparison
also not unterminated?I'm just trying out lots of partial source snippets to see if I can get my head around what this object is telling me.