LibGUI: Add AutocompleteProvider::TokenInfo::type_to_string()

This commit is contained in:
Itamar 2022-03-31 19:05:51 +03:00 committed by Andreas Kling
commit 53c6c36fba
Notes: sideshowbarker 2024-07-17 20:58:35 +09:00
2 changed files with 38 additions and 17 deletions

View file

@ -940,6 +940,7 @@ Vector<GUI::AutocompleteProvider::TokenInfo> CppComprehensionEngine::get_tokens_
tokens_info.append({ get_token_semantic_type(document, token),
token.start().line, token.start().column, token.end().line, token.end().column });
++i;
dbgln_if(CPP_LANGUAGE_SERVER_DEBUG, "{}: {}", token.text(), GUI::AutocompleteProvider::TokenInfo::type_to_string(tokens_info.last().type));
}
return tokens_info;
}