diff options
author | Christian Kamm <[email protected]> | 2011-05-04 11:12:45 +0200 |
---|---|---|
committer | Christian Kamm <[email protected]> | 2011-05-04 11:14:35 +0200 |
commit | 02b7eacf4b1884e11c2c8668080af1a3742cbf5e (patch) | |
tree | 615676427277f7ac013888dce3533b0b304a4f46 /src/libs/qmljs/qmljsinterpreter.h | |
parent | 6bb08f1bf99c6b051dd47e9ce7b1125e00d77e65 (diff) |
QmlJS: Fix type detection for alias properties.
Task-number: QTCREATORBUG-2306
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.h')
-rw-r--r-- | src/libs/qmljs/qmljsinterpreter.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.h b/src/libs/qmljs/qmljsinterpreter.h index a14158678b4..047aeea15b2 100644 --- a/src/libs/qmljs/qmljsinterpreter.h +++ b/src/libs/qmljs/qmljsinterpreter.h @@ -317,10 +317,12 @@ private: class QMLJS_EXPORT Context { public: - Context(); + Context(const Snapshot &snapshot); ~Context(); Engine *engine() const; + Snapshot snapshot() const; + const ScopeChain &scopeChain() const; ScopeChain &scopeChain(); @@ -340,6 +342,7 @@ public: private: typedef QHash<QString, const Value *> Properties; + Snapshot _snapshot; QSharedPointer<Engine> _engine; QHash<const ObjectValue *, Properties> _properties; QHash<const Document *, const TypeEnvironment *> _typeEnvironments; |