diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-11-23 12:57:48 +0100 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-11-25 15:06:44 +0100 |
commit | 93967104f3d7d2579be048d7137a404994981196 (patch) | |
tree | 02556037a835dfeb37d802e95746470719afad1a /src/libs/qmljs/qmljsdocument.cpp | |
parent | 8f27c43877fa7d7bef7f2f7f7413544435f122fd (diff) | |
download | qt-creator-93967104f3d7d2579be048d7137a404994981196.tar.gz |
QmlJS: Reactivate instantiating component scope detection.
* Bind::usesQmlPrototype is now significantly more performant
* type environments are no longer hashed by filename, but rather
by Document *
* duplicate scope builds are avoided
Task-number: QTCREATORBUG-2835
Reviewed-by: Erik Verbruggen
Diffstat (limited to 'src/libs/qmljs/qmljsdocument.cpp')
-rw-r--r-- | src/libs/qmljs/qmljsdocument.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsdocument.cpp b/src/libs/qmljs/qmljsdocument.cpp index dfc3025c02..0386671a0d 100644 --- a/src/libs/qmljs/qmljsdocument.cpp +++ b/src/libs/qmljs/qmljsdocument.cpp @@ -159,6 +159,11 @@ AST::Node *Document::ast() const return _ast; } +const QmlJS::Engine *Document::engine() const +{ + return _engine; +} + QList<DiagnosticMessage> Document::diagnosticMessages() const { return _diagnosticMessages; |