expected At
abstract fun expectedAt(inputText: String, position: Int, desiredDepth: Int, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): List<CompletionItem>
Content copied to clipboard
returns list of names of expected rules
Return
list of possible completion items
Parameters
inputText
text to parse
goalRuleName
name of a rule in the grammar that is the goal rule
position
position in the text (from reader) at which to provide completions
desiredDepth
depth of nested rules to search when constructing possible completions
Throws
ParseFailedException
ParseTreeException
abstract fun expectedAt(goalRuleName: String, inputText: String, position: Int, desiredDepth: Int, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): List<CompletionItem>
Content copied to clipboard