@@ -585,22 +585,20 @@ llvm::json::Value toJSON(const SteppingGranularity &SG) {
585585bool fromJSON (const json::Value &Params, StepInTarget &SIT, json::Path P) {
586586 json::ObjectMapper O (Params, P);
587587 return O && O.map (" id" , SIT.id ) && O.map (" label" , SIT.label ) &&
588- O.mapOptional (" line" , SIT.line ) &&
589- O.mapOptional (" column" , SIT.column ) &&
590- O.mapOptional (" endLine" , SIT.endLine ) &&
591- O.mapOptional (" endColumn" , SIT.endColumn );
588+ O.map (" line" , SIT.line ) && O.map (" column" , SIT.column ) &&
589+ O.map (" endLine" , SIT.endLine ) && O.map (" endColumn" , SIT.endColumn );
592590}
593591
594592llvm::json::Value toJSON (const StepInTarget &SIT) {
595593 json::Object target{{" id" , SIT.id }, {" label" , SIT.label }};
596594
597- if (SIT.line && *SIT. line != LLDB_INVALID_LINE_NUMBER)
595+ if (SIT.line != LLDB_INVALID_LINE_NUMBER)
598596 target.insert ({" line" , SIT.line });
599- if (SIT.column && *SIT. column != LLDB_INVALID_COLUMN_NUMBER)
597+ if (SIT.column != LLDB_INVALID_COLUMN_NUMBER)
600598 target.insert ({" column" , SIT.column });
601- if (SIT.endLine && *SIT. endLine != LLDB_INVALID_LINE_NUMBER)
599+ if (SIT.endLine != LLDB_INVALID_LINE_NUMBER)
602600 target.insert ({" endLine" , SIT.endLine });
603- if (SIT.endColumn && *SIT. endLine != LLDB_INVALID_COLUMN_NUMBER)
601+ if (SIT.endLine != LLDB_INVALID_COLUMN_NUMBER)
604602 target.insert ({" endColumn" , SIT.endColumn });
605603
606604 return target;
0 commit comments