Lines Matching defs:object

48 // Gets a string from a JSON object using the key, or returns an empty string.
61 // Gets an unsigned integer from a JSON object using the key, or returns the
135 void SetValueForKey(lldb::SBValue &v, llvm::json::Object &object,
161 EmplaceSafeString(object, key, result);
177 // "type": "object",
244 llvm::json::Object object;
245 EmplaceSafeString(object, "name", name.str());
250 object.try_emplace("presentationHint", "locals");
252 object.try_emplace("presentationHint", "registers");
255 object.try_emplace("variablesReference", variablesReference);
256 object.try_emplace("expensive", expensive);
257 object.try_emplace("namedVariables", namedVariables);
258 return llvm::json::Value(std::move(object));
262 // "type": "object",
314 llvm::json::Object object;
316 return llvm::json::Value(std::move(object));
318 object.try_emplace("verified", bp.GetNumResolvedLocations() > 0);
319 object.try_emplace("id", bp.GetID());
341 object.try_emplace("source", CreateSource(*request_path));
347 object.try_emplace("line", line);
348 object.try_emplace("source", CreateSource(line_entry));
352 object.try_emplace("line", *request_line);
353 return llvm::json::Value(std::move(object));
397 llvm::json::Object object;
399 return llvm::json::Value(std::move(object));
401 object.try_emplace("id", uuid ? std::string(uuid) : std::string(""));
402 object.try_emplace("name", std::string(module.GetFileSpec().GetFilename()));
406 object.try_emplace("path", module_path);
414 object.try_emplace("symbolStatus", symbol_str);
415 object.try_emplace("debugInfoSize", debug_info_size);
420 object.try_emplace("symbolFilePath", symbol_path);
422 object.try_emplace("symbolStatus", "Symbols not found.");
426 object.try_emplace("addressRange", loaded_addr);
437 object.try_emplace("version", version_str);
438 return llvm::json::Value(std::move(object));
449 // "type": "object",
462 // "object", "string" ],
470 // "type": "object",
494 // "type": "object",
517 llvm::json::Object object;
518 EmplaceSafeString(object, "filter", bp.filter);
519 EmplaceSafeString(object, "label", bp.label);
520 object.try_emplace("default", bp.default_value);
521 return llvm::json::Value(std::move(object));
525 // "type": "object",
574 // "type":["array","boolean","integer","null","number","object","string"],
590 llvm::json::Object object;
595 EmplaceSafeString(object, "name", name);
599 EmplaceSafeString(object, "path", std::string(path));
602 return llvm::json::Value(std::move(object));
619 llvm::json::Object object;
631 object.try_emplace("sourceReference", addr_srcref->second);
644 object.try_emplace("sourceReference", addr_srcref->second);
653 EmplaceSafeString(object, "name", frame.GetFunctionName());
695 object.try_emplace("sourceReference", sourceReference);
697 return llvm::json::Value(std::move(object));
701 // "type": "object",
757 llvm::json::Object object;
759 object.try_emplace("id", frame_id);
770 EmplaceSafeString(object, "name", frame_name);
773 object.try_emplace("source", CreateSource(frame, disasm_line));
777 object.try_emplace("line", disasm_line);
782 object.try_emplace("line", line);
784 object.try_emplace("column", line_entry.GetColumn());
785 return llvm::json::Value(std::move(object));
789 // "type": "object",
804 llvm::json::Object object;
805 object.try_emplace("id", (int64_t)thread.GetThreadID());
813 EmplaceSafeString(object, "name", thread_with_name);
815 EmplaceSafeString(object, "name", std::string(thread_str));
817 return llvm::json::Value(std::move(object));
822 // "type": "object",
834 // "type": "object",
974 // "type": "object",
1038 llvm::json::Object object;
1039 EmplaceSafeString(object, "name",
1044 SetValueForKey(v, object, "value");
1066 object.try_emplace("indexedVariables", num_children);
1073 object.try_emplace("indexedVariables", num_children);
1076 EmplaceSafeString(object, "type", type_cstr ? type_cstr : NO_TYPENAME);
1078 object.try_emplace("id", varID);
1080 object.try_emplace("variablesReference", variablesReference);
1082 object.try_emplace("variablesReference", (int64_t)0);
1087 EmplaceSafeString(object, "evaluateName", std::string(evaluateName));
1088 return llvm::json::Value(std::move(object));
1092 llvm::json::Object object;
1096 object.try_emplace("compileUnitPath", unit_path);
1097 return llvm::json::Value(std::move(object));