aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2014-01-24 16:53:16 +0100
committerEike Ziller <[email protected]>2014-01-29 10:16:10 +0100
commitf8461fbbdffc744d917c5648e3501be95f319c70 (patch)
treec50e1a10b0a8a93b1d2faa1da7619a07acc3ad47 /src/libs
parentae5ef38e3c8bb76bbdfac727953d584e1f52303d (diff)
QmlJSEditor: Move semantic info updating to document
Change-Id: I804dbd887af1786e7554ec79f94fc8e59db1de5b Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/qmljs/qmljscontext.cpp4
-rw-r--r--src/libs/qmljs/qmljslink.cpp2
-rw-r--r--src/libs/qmljs/qmljsscopechain.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/qmljs/qmljscontext.cpp b/src/libs/qmljs/qmljscontext.cpp
index 494fbf1226b..fe8fc516433 100644
--- a/src/libs/qmljs/qmljscontext.cpp
+++ b/src/libs/qmljs/qmljscontext.cpp
@@ -49,9 +49,9 @@ using namespace QmlJS::AST;
Information about the imports of a Document can be accessed with imports().
- When dealing with a QmlJSEditor::QmlJSTextEditorWidget it is unnecessary to
+ When dealing with a QmlJSEditor::QmlJSEditorDocument it is unnecessary to
construct a new Context manually. Instead use
- QmlJSTextEditorWidget::semanticInfo()::context.
+ QmlJSEditorDocument::semanticInfo()::context.
*/
ContextPtr Context::create(const QmlJS::Snapshot &snapshot, ValueOwner *valueOwner,
diff --git a/src/libs/qmljs/qmljslink.cpp b/src/libs/qmljs/qmljslink.cpp
index 65a6f2b9aea..30bcd6bbb07 100644
--- a/src/libs/qmljs/qmljslink.cpp
+++ b/src/libs/qmljs/qmljslink.cpp
@@ -130,7 +130,7 @@ public:
Initializes a context by resolving imports. This is an expensive operation.
Instead of making a fresh context, consider reusing the one maintained in the
- \l{QmlJSEditor::SemanticInfo} of a \l{QmlJSEditor::QmlJSTextEditorWidget}.
+ \l{QmlJSEditor::SemanticInfo} of a \l{QmlJSEditor::QmlJSEditorDocument}.
*/
Link::Link(const Snapshot &snapshot, const ViewerContext &vContext, const LibraryInfo &builtins)
diff --git a/src/libs/qmljs/qmljsscopechain.cpp b/src/libs/qmljs/qmljsscopechain.cpp
index fd57abace93..4113e47cd30 100644
--- a/src/libs/qmljs/qmljsscopechain.cpp
+++ b/src/libs/qmljs/qmljsscopechain.cpp
@@ -50,9 +50,9 @@ using namespace QmlJS;
It is an error to use the same ScopeChain from multiple threads; use a copy.
Copying is cheap. Initial construction is currently expensive.
- When a QmlJSEditor::QmlJSTextEditorWidget is available, there's no need to
+ When a QmlJSEditor::QmlJSEditorDocument is available, there's no need to
construct a new ScopeChain. Instead use
- QmlJSTextEditorWidget::semanticInfo()::scopeChain().
+ QmlJSEditorDocument::semanticInfo()::scopeChain().
*/
QmlComponentChain::QmlComponentChain(const Document::Ptr &document)