MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / VariantAsJsonValue

Method VariantAsJsonValue

cpp/iedriver/VariantUtilities.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132int VariantUtilities::VariantAsJsonValue(IElementManager* element_manager,
133 VARIANT variant_value,
134 Json::Value* value) {
135 std::vector<IDispatch*> visited;
136 if (HasSelfReferences(variant_value, &visited)) {
137 return EUNEXPECTEDJSERROR;
138 }
139 return ConvertVariantToJsonValue(element_manager, variant_value, value);
140}
141
142bool VariantUtilities::HasSelfReferences(VARIANT current_object,
143 std::vector<IDispatch*>* visited) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected