diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-08-16 14:11:30 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-08-18 17:11:59 +0200 |
commit | f725c24c561ea6d149736620af190cc10eea95e8 (patch) | |
tree | f36a08cecaab77bdf5aa96d0a69c0a0215303c8e /src/libs/qmljs/qmljsmodelmanagerinterface.h | |
parent | ede672c8d9a997d8bb395d18c0eb829d99a56f16 (diff) | |
download | qt-creator-f725c24c561ea6d149736620af190cc10eea95e8.tar.gz |
QmlJS: Fix semantic and non-semantic QML error reporting.
The QML snapshot only ever contains valid Documents; to compile a list
of parser problems we need to get at the invalid documents.
To do that, the model manager now provides a Snapshot with up to date,
but potentially invalid documents. That should also be useful for other
things.
Change-Id: I67892f63771c221bf2fe2c2bf0240a0f4e523227
Reviewed-on: http://codereview.qt.nokia.com/3012
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
Diffstat (limited to 'src/libs/qmljs/qmljsmodelmanagerinterface.h')
-rw-r--r-- | src/libs/qmljs/qmljsmodelmanagerinterface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.h b/src/libs/qmljs/qmljsmodelmanagerinterface.h index 731b9c6ade..17530e4359 100644 --- a/src/libs/qmljs/qmljsmodelmanagerinterface.h +++ b/src/libs/qmljs/qmljsmodelmanagerinterface.h @@ -119,7 +119,7 @@ public: static ModelManagerInterface *instance(); virtual WorkingCopy workingCopy() const = 0; - virtual QmlJS::Snapshot snapshot() const = 0; + virtual QmlJS::Snapshot snapshot(bool preferValid = true) const = 0; virtual void updateSourceFiles(const QStringList &files, bool emitDocumentOnDiskChanged) = 0; |