forked from qt-creator/qt-creator
QmlJS: Remove Interpreter namespace.
The distinction between QmlJS and QmlJS::Interpreter has always been weak and the extra namespace just added an unnecessary complication. Change-Id: I4db8ef4bd91b5f6bf610a9d23fdbf55bd60250fc Reviewed-on: http://codereview.qt.nokia.com/2743 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -72,8 +72,8 @@ QVariant QmlOutlineItem::data(int role) const
|
||||
return QVariant();
|
||||
|
||||
QList<AST::Node *> astPath = m_outlineModel->m_semanticInfo.rangePath(location.begin());
|
||||
Interpreter::ScopeChain scopeChain = m_outlineModel->m_semanticInfo.scopeChain(astPath);
|
||||
const Interpreter::Value *value = scopeChain.evaluate(uiQualifiedId);
|
||||
ScopeChain scopeChain = m_outlineModel->m_semanticInfo.scopeChain(astPath);
|
||||
const Value *value = scopeChain.evaluate(uiQualifiedId);
|
||||
|
||||
return prettyPrint(value, scopeChain.context());
|
||||
}
|
||||
@@ -99,12 +99,12 @@ void QmlOutlineItem::setItemData(const QMap<int, QVariant> &roles)
|
||||
}
|
||||
}
|
||||
|
||||
QString QmlOutlineItem::prettyPrint(const Interpreter::Value *value, const Interpreter::ContextPtr &context) const
|
||||
QString QmlOutlineItem::prettyPrint(const Value *value, const ContextPtr &context) const
|
||||
{
|
||||
if (! value)
|
||||
return QString();
|
||||
|
||||
if (const Interpreter::ObjectValue *objectValue = value->asObjectValue()) {
|
||||
if (const ObjectValue *objectValue = value->asObjectValue()) {
|
||||
const QString className = objectValue->className();
|
||||
if (!className.isEmpty()) {
|
||||
return className;
|
||||
|
||||
Reference in New Issue
Block a user