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:
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "parser/qmljsast_p.h"
|
||||
#include "qmljsbind.h"
|
||||
#include "qmljscheck.h"
|
||||
#include "qmljsutils.h"
|
||||
#include "qmljsdocument.h"
|
||||
|
||||
#include <languageutils/componentversion.h>
|
||||
@@ -141,20 +141,6 @@ ObjectValue *Bind::switchObjectValue(ObjectValue *newObjectValue)
|
||||
return oldObjectValue;
|
||||
}
|
||||
|
||||
QString Bind::toString(UiQualifiedId *qualifiedId, QChar delimiter)
|
||||
{
|
||||
QString result;
|
||||
|
||||
for (UiQualifiedId *iter = qualifiedId; iter; iter = iter->next) {
|
||||
if (iter != qualifiedId)
|
||||
result += delimiter;
|
||||
|
||||
result += iter->name;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
ObjectValue *Bind::bindObject(UiQualifiedId *qualifiedTypeNameId, UiObjectInitializer *initializer)
|
||||
{
|
||||
ObjectValue *parentObjectValue = 0;
|
||||
|
Reference in New Issue
Block a user