class RubyLsp::ResponseBuilders::SemanticHighlighting::SemanticToken
def replace_modifier(modifier_symbols)
def replace_modifier(modifier_symbols) @modifier = modifier_symbols.filter_map do |modifier_symbol| modifier_index = TOKEN_MODIFIERS[modifier_symbol] raise UndefinedTokenType, "Undefined token modifier: #{modifier_symbol}" unless modifier_index modifier_index end end