diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-11-01 14:01:07 +0100 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-11-07 15:16:59 +0100 |
commit | a51120b7dbbd7f5a6a28fe97cc33a9fc63078d9d (patch) | |
tree | b5ec780a43c560125dcc9d5ed68631b641d6466b /src/libs/qmljs/qmljsdocument.cpp | |
parent | 5cc536cd5a7969faa4cb1caf70f638c1cd86b293 (diff) | |
download | qt-creator-a51120b7dbbd7f5a6a28fe97cc33a9fc63078d9d.tar.gz |
QmlJS: Documentation.
Change-Id: I2a095e38b7d79a5fb39a16d8f32b48c8e28132f6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
Diffstat (limited to 'src/libs/qmljs/qmljsdocument.cpp')
-rw-r--r-- | src/libs/qmljs/qmljsdocument.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libs/qmljs/qmljsdocument.cpp b/src/libs/qmljs/qmljsdocument.cpp index 51f8108ee9..9387423e38 100644 --- a/src/libs/qmljs/qmljsdocument.cpp +++ b/src/libs/qmljs/qmljsdocument.cpp @@ -46,13 +46,17 @@ using namespace QmlJS::AST; \brief A Qml or JavaScript document. \sa QmlJS::Snapshot - Documents are usually created by the \l{QmlJSEditor::Internal::ModelManager} + Documents are usually created by the \l{QmlJS::ModelManagerInterface} and stored in a \l{QmlJS::Snapshot}. They allow access to data such as the file path, source code, abstract syntax tree and the \l{QmlJS::Bind} instance for the document. To make sure unused and outdated documents are removed correctly, Document instances are usually accessed through a shared pointer, see \l{Document::Ptr}. + + Documents in a Snapshot are immutable: They, or anything reachable through them, + must not be changed. This allows Documents to be shared freely among threads + without extra synchronization. */ /*! @@ -60,7 +64,7 @@ using namespace QmlJS::AST; \brief A Qml library. \sa QmlJS::Snapshot - A LibraryInfo is created when the \l{QmlJSEditor::Internal::ModelManager} finds + A LibraryInfo is created when the \l{QmlJS::ModelManagerInterface} finds a Qml library and parses the qmldir file. The instance holds information about which Components the library provides and which plugins to load. @@ -77,7 +81,7 @@ using namespace QmlJS::AST; A Snapshot holds and offers access to a set of Document and LibraryInfo instances. Usually Snapshots are copies of the snapshot maintained and updated by the - \l{QmlJSEditor::Internal::ModelManager} that updates its instance as parsing + \l{QmlJS::ModelManagerInterface} that updates its instance as parsing threads finish and new information becomes available. */ |