Context Class
(QmlJS::Context)The Context class holds information about relationships between documents in a Snapshot. More...
| Header: | #include <Context> |
Detailed Description
Contexts are usually created through Link. Once created, a Context is immutable and can be freely shared between threads.
Their main purpose is to allow lookup of types with lookupType() and resolving of references through lookupReference(). As such, they form the basis for creating a ScopeChain.
Information about the imports of a Document can be accessed with imports().
When dealing with a QmlJSEditor::QmlJSEditorDocument it is unnecessary to construct a new Context manually. Instead use QmlJSEditorDocument::semanticInfo()::context.