diff options
author | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2014-06-02 14:35:57 +0200 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2014-06-23 11:37:11 +0200 |
commit | 4ae01e973ad180509c301ff302807215303154a3 (patch) | |
tree | 86b7bcc52e040e5d7edbc178e3f30b935fe1a70e /src/libs/qmljs/qmljsdescribevalue.h | |
parent | e61119feb9a88f9bd5d6a2e3debdd09ad85d1cb5 (diff) | |
download | qt-creator-4ae01e973ad180509c301ff302807215303154a3.tar.gz |
qmljs/qmljsdescribevalue: try to use context to resolve prototypes
Change-Id: I0e8529dc339e995be1817b2f3d18ca9bc2c80738
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/libs/qmljs/qmljsdescribevalue.h')
-rw-r--r-- | src/libs/qmljs/qmljsdescribevalue.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljsdescribevalue.h b/src/libs/qmljs/qmljsdescribevalue.h index f82a4512f7..9707f303b4 100644 --- a/src/libs/qmljs/qmljsdescribevalue.h +++ b/src/libs/qmljs/qmljsdescribevalue.h @@ -41,9 +41,10 @@ namespace QmlJS { class QMLJS_EXPORT DescribeValueVisitor : public ValueVisitor { public: - static QString describe(const Value *value, int depth = 1); + static QString describe(const Value *value, int depth = 1, ContextPtr context = ContextPtr()); - DescribeValueVisitor(int detailDepth = 1, int startIndent = 0, int indentIncrement = 2); + DescribeValueVisitor(int detailDepth = 1, int startIndent = 0, int indentIncrement = 2, + ContextPtr context = ContextPtr()); virtual ~DescribeValueVisitor(); QString operator()(const Value *value); @@ -70,6 +71,7 @@ private: int m_indent; int m_indentIncrement; bool m_emptyContext; + ContextPtr m_context; QSet<const Value *> m_visited; QString m_description; }; |