forked from qt-creator/qt-creator
qmlj/qmljsdescribevalue: fix dump of ASTObjectValues
Change-Id: I35713ca8ff54030cf062c31802af703ee2e7c468 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -212,14 +212,16 @@ void DescribeValueVisitor::visit(const ObjectValue *value)
|
|||||||
m_visited.insert(value);
|
m_visited.insert(value);
|
||||||
if (const ASTObjectValue *v = value->asAstObjectValue()) {
|
if (const ASTObjectValue *v = value->asAstObjectValue()) {
|
||||||
basicDump("ASTObjectValue", value, printDetail);
|
basicDump("ASTObjectValue", value, printDetail);
|
||||||
if (v->typeName()) {
|
if (printDetail) {
|
||||||
|
if (v->typeName()) {
|
||||||
|
dumpNewline();
|
||||||
|
dump("typeName:");
|
||||||
|
dump(v->typeName()->name.toString());
|
||||||
|
}
|
||||||
dumpNewline();
|
dumpNewline();
|
||||||
dump("typeName:");
|
dump("defaultPropertyName:");
|
||||||
dump(v->typeName()->name.toString());
|
dump(v->defaultPropertyName());
|
||||||
}
|
}
|
||||||
dumpNewline();
|
|
||||||
dump("defaultPropertyName:");
|
|
||||||
dump(v->defaultPropertyName());
|
|
||||||
} else if (const FunctionValue *f = value->asFunctionValue()) {
|
} else if (const FunctionValue *f = value->asFunctionValue()) {
|
||||||
if (const ASTFunctionValue *v = f->asAstFunctionValue()) {
|
if (const ASTFunctionValue *v = f->asAstFunctionValue()) {
|
||||||
basicDump("ASTFunctionValue", v, printDetail);
|
basicDump("ASTFunctionValue", v, printDetail);
|
||||||
|
|||||||
Reference in New Issue
Block a user