mirror of
https://github.com/open-goal/jak-project.git
synced 2024-11-23 22:29:53 +00:00
20 lines
498 B
C++
20 lines
498 B
C++
#include "document_color.h"
|
|
|
|
void LSPSpec::to_json(json& j, const DocumentColorParams& obj) {
|
|
json_serialize(textDocument);
|
|
}
|
|
|
|
void LSPSpec::from_json(const json& j, DocumentColorParams& obj) {
|
|
json_deserialize_if_exists(textDocument);
|
|
}
|
|
|
|
void LSPSpec::to_json(json& j, const ColorInformation& obj) {
|
|
json_serialize(range);
|
|
json_serialize(color);
|
|
}
|
|
|
|
void LSPSpec::from_json(const json& j, ColorInformation& obj) {
|
|
json_deserialize_if_exists(range);
|
|
json_deserialize_if_exists(color);
|
|
}
|