1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

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
parent 3ab7388754
commit 53c6c36fba
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;
}