mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LanguageServers/Cpp: Autocomplete function and struct/class names
This commit is contained in:
parent
e42b9e879c
commit
64c80f6ea4
Notes:
sideshowbarker
2024-07-18 22:26:23 +09:00
Author: https://github.com/itamar8910
Commit: 64c80f6ea4
Pull-request: https://github.com/SerenityOS/serenity/pull/5290
2 changed files with 8 additions and 0 deletions
|
@ -143,6 +143,12 @@ Vector<GUI::AutocompleteProvider::Entry> ParserAutoComplete::autocomplete_identi
|
|||
if (decl.is_variable_or_parameter_declaration()) {
|
||||
add_name(((Cpp::VariableOrParameterDeclaration&)decl).m_name);
|
||||
}
|
||||
if (decl.is_struct_or_class()) {
|
||||
add_name(((Cpp::StructOrClassDeclaration&)decl).m_name);
|
||||
}
|
||||
if (decl.is_function()) {
|
||||
add_name(((Cpp::FunctionDeclaration&)decl).m_name);
|
||||
}
|
||||
}
|
||||
|
||||
auto partial_text = document.parser.text_of_node(node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue