mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LanguageServers/Cpp: Add type to Declarations
This commit is contained in:
parent
4b483071fb
commit
71c7597130
2 changed files with 14 additions and 0 deletions
|
@ -97,6 +97,7 @@ inline bool encode(Encoder& encoder, const GUI::AutocompleteProvider::Declaratio
|
|||
encoder << declaration.name;
|
||||
if (!encode(encoder, declaration.position))
|
||||
return false;
|
||||
encoder << (u32)declaration.type;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -108,6 +109,11 @@ inline bool decode(Decoder& decoder, GUI::AutocompleteProvider::Declaration& dec
|
|||
|
||||
if (!decode(decoder, declaration.position))
|
||||
return false;
|
||||
u32 type;
|
||||
if (!decoder.decode( type))
|
||||
return false;
|
||||
|
||||
declaration.type = static_cast<GUI::AutocompleteProvider::DeclarationType>(type);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue