Commit 97c955a3 authored by Sebastian Sauer's avatar Sebastian Sauer Committed by Kai Koehne

Add QmlPrototypeReference::document() getter

Enable access to the private Document
instance in the same way its done
already in the ASTObjectValue class
by adding a const getter.

Change-Id: I0581e527bb766fc72682f2e38d0d8d52d4452deb
Reviewed-by: default avatarKai Koehne <kai.koehne@theqtcompany.com>
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 9367ad36
......@@ -2076,6 +2076,11 @@ UiQualifiedId *QmlPrototypeReference::qmlTypeName() const
return m_qmlTypeName;
}
const Document *QmlPrototypeReference::document() const
{
return m_doc;
}
const Value *QmlPrototypeReference::value(ReferenceContext *referenceContext) const
{
return referenceContext->context()->lookupType(m_doc, m_qmlTypeName);
......
......@@ -872,6 +872,7 @@ public:
const QmlPrototypeReference *asQmlPrototypeReference() const Q_DECL_OVERRIDE;
AST::UiQualifiedId *qmlTypeName() const;
const Document *document() const;
private:
const Value *value(ReferenceContext *referenceContext) const Q_DECL_OVERRIDE;
......
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