forked from qt-creator/qt-creator
QmlJS: Move commonly used functions to qmlutils.h.
Change-Id: I22376d96fe575bc00a55094c06af80e32a5587e6 Reviewed-on: http://codereview.qt-project.org/6238 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include <qmljs/qmljsbind.h>
|
||||
#include <qmljs/qmljsscopebuilder.h>
|
||||
#include <qmljs/qmljsevaluate.h>
|
||||
#include <qmljs/qmljsutils.h>
|
||||
#include <texteditor/basetexteditor.h>
|
||||
#include <texteditor/tabsettings.h>
|
||||
#include <coreplugin/icore.h>
|
||||
@@ -66,11 +67,7 @@ static inline QString textAt(const Document* doc,
|
||||
|
||||
static inline const ObjectValue * getPropertyChangesTarget(Node *node, const ScopeChain &scopeChain)
|
||||
{
|
||||
UiObjectInitializer *initializer = 0;
|
||||
if (UiObjectDefinition *definition = cast<UiObjectDefinition *>(node))
|
||||
initializer = definition->initializer;
|
||||
if (UiObjectBinding *binding = cast<UiObjectBinding *>(node))
|
||||
initializer = binding->initializer;
|
||||
UiObjectInitializer *initializer = initializerOfObject(node);
|
||||
if (initializer) {
|
||||
for (UiObjectMemberList *members = initializer->members; members; members = members->next) {
|
||||
if (UiScriptBinding *scriptBinding = cast<UiScriptBinding *>(members->member)) {
|
||||
|
||||
Reference in New Issue
Block a user