| 1 | //===-- ProtocolEvents.cpp ------------------------------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "Protocol/ProtocolEvents.h" |
| 10 | #include "llvm/Support/JSON.h" |
| 11 | |
| 12 | using namespace llvm; |
| 13 | |
| 14 | namespace lldb_dap::protocol { |
| 15 | |
| 16 | json::Value toJSON(const CapabilitiesEventBody &CEB) { |
| 17 | return json::Object{{.K: "capabilities" , .V: CEB.capabilities}}; |
| 18 | } |
| 19 | |
| 20 | } // namespace lldb_dap::protocol |
| 21 | |