Package-level declarations
Types
Link copied to clipboard
data class FunctionCall(val range: IntRange, val tokens: List<FunctionCallToken>, val parserResult: WalkerParsingResult<WalkedFunctionCall>)
A function call in Quarkdown source code.
Link copied to clipboard
data class FunctionCallToken(val type: FunctionCallToken.Type, val range: IntRange, val lexeme: String)
A token within a function call which represents a specific part of the function call syntax such as the function name, delimiters, argument values, etc.
Link copied to clipboard
class FunctionCallTokenizer
Tokenizes function calls in text content.
Functions
Link copied to clipboard
fun List<FunctionCallToken>.findMatchingTokenBeforeIndex(beforeIndex: Int, matchType: FunctionCallToken.Type, reset: Set<FunctionCallToken.Type>): FunctionCallToken?
Finds the last token of a specific type before a given index in the list of function call tokens. If a reset token is encountered, it discards the match.
Link copied to clipboard
Finds the innermost function call that contains the specified index (relative to the source code the function call was tokenized from).
Link copied to clipboard
Finds the token within a function call that contains the specified index (relative to the source code the function call was tokenized from).