MCPcopy Create free account
hub / github.com/KDE/kdevelop / resolveBase

Method resolveBase

plugins/qmljs/3rdparty/qtcreator-libs/utils/json.cpp:607–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607JsonObjectValue *JsonSchema::resolveBase(JsonObjectValue *ov) const
608{
609 if (JsonValue *v = ov->member(kExtends())) {
610 if (v->kind() == JsonValue::String) {
611 JsonSchema *schema = m_manager->schemaByName(v->toString()->value());
612 if (schema)
613 return schema->rootValue();
614 } else if (v->kind() == JsonValue::Object) {
615 return resolveReference(v->toObject());
616 }
617 }
618
619 return 0;
620}
621
622JsonStringValue *JsonSchema::getStringValue(const QString &name, JsonObjectValue *value)
623{

Callers

nothing calls this directly

Calls 5

schemaByNameMethod · 0.80
memberMethod · 0.45
kindMethod · 0.45
valueMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected