Commit ba282d23 authored by Fawzi Mohamed's avatar Fawzi Mohamed

qmlj/qmljsdescribevalue: fix dump of ASTObjectValues

Change-Id: I35713ca8ff54030cf062c31802af703ee2e7c468
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 3b9262cc
......@@ -212,14 +212,16 @@ void DescribeValueVisitor::visit(const ObjectValue *value)
m_visited.insert(value);
if (const ASTObjectValue *v = value->asAstObjectValue()) {
basicDump("ASTObjectValue", value, printDetail);
if (v->typeName()) {
if (printDetail) {
if (v->typeName()) {
dumpNewline();
dump("typeName:");
dump(v->typeName()->name.toString());
}
dumpNewline();
dump("typeName:");
dump(v->typeName()->name.toString());
dump("defaultPropertyName:");
dump(v->defaultPropertyName());
}
dumpNewline();
dump("defaultPropertyName:");
dump(v->defaultPropertyName());
} else if (const FunctionValue *f = value->asFunctionValue()) {
if (const ASTFunctionValue *v = f->asAstFunctionValue()) {
basicDump("ASTFunctionValue", v, printDetail);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment