QmlJS: Add initial documentation for the base classes of the code model.

This commit is contained in:
Christian Kamm
2010-09-15 15:25:59 +02:00
parent ee3ad439a8
commit 8df6dd6d7d
3 changed files with 70 additions and 0 deletions

View File

@@ -43,6 +43,19 @@ using namespace QmlJS;
using namespace QmlJS::Interpreter;
using namespace QmlJS::AST;
/*!
\class QmlJS::Link
\brief Initializes the Context for a Document.
\sa QmlJS::Document QmlJS::Interpreter::Context
Initializes a context by resolving imports and building the root scope
chain. Currently, this is a expensive operation.
It's recommended to use a the \l{LookupContext} returned by
\l{QmlJSEditor::SemanticInfo::lookupContext()} instead of building a new
\l{Context} with \l{Link}.
*/
Link::Link(Context *context, const Document::Ptr &doc, const Snapshot &snapshot,
const QStringList &importPaths)
: _doc(doc)