aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlrewrite_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-27 22:43:47 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-28 14:56:26 +0200
commitb83abcb398c2c449bfa4ada2172e890b56b8602c (patch)
tree19f4f6ed3af874dc0b539fc04f1a17b70fe40a75 /src/qml/qml/qqmlrewrite_p.h
parentde7d66ba0295eba73d509e671fdda69a9bef39a6 (diff)
Convert QV8Engine::illegalNames() to use the identifier hash
Change-Id: I436c2a17e417cb311f10290a4cc6e5b728b4b7be Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlrewrite_p.h')
-rw-r--r--src/qml/qml/qqmlrewrite_p.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/qml/qml/qqmlrewrite_p.h b/src/qml/qml/qqmlrewrite_p.h
index 127c0811cc..7cd283f1d9 100644
--- a/src/qml/qml/qqmlrewrite_p.h
+++ b/src/qml/qml/qqmlrewrite_p.h
@@ -57,7 +57,7 @@
#include <private/qqmljslexer_p.h>
#include <private/qqmljsparser_p.h>
#include <private/qqmljsmemorypool_p.h>
-#include <private/qhashedstring_p.h>
+#include <private/qv4identifier_p.h>
QT_BEGIN_NAMESPACE
@@ -91,14 +91,14 @@ public:
class RewriteSignalHandler: protected AST::Visitor
{
public:
- RewriteSignalHandler();
+ RewriteSignalHandler(QV4::ExecutionEngine *engine);
QString operator()(QQmlJS::AST::Node *node, const QString &code, const QString &name,
const QString &parameterString = QString(),
const QList<QByteArray> &parameterNameList = QList<QByteArray>(),
- const QStringHash<bool> &illegalNames = QStringHash<bool>());
+ const QV4::IdentifierHash<bool> &illegalNames = QV4::IdentifierHash<bool>());
QString operator()(const QString &code, const QString &name, bool *ok = 0,
const QList<QByteArray> &parameterNameList = QList<QByteArray>(),
- const QStringHash<bool> &illegalNames = QStringHash<bool>());
+ const QV4::IdentifierHash<bool> &illegalNames = QV4::IdentifierHash<bool>());
enum ParameterAccess {
ParametersAccessed,
@@ -110,7 +110,7 @@ public:
int parameterCountForJS() const { return _parameterCountForJS; }
ParameterAccess parameterAccess() const { return _parameterAccess; }
QString createParameterString(const QList<QByteArray> &parameterNameList,
- const QStringHash<bool> &illegalNames);
+ const QV4::IdentifierHash<bool> &illegalNames);
bool hasParameterError() { return !_error.isEmpty(); }
QString parameterError() const { return _error; }
@@ -124,14 +124,11 @@ protected:
virtual bool visit(AST::IdentifierExpression *);
private:
- QString createParameterString(const QList<QHashedString> &parameterNameList,
- const QStringHash<bool> &illegalNames);
-
TextWriter *_writer;
const QString *_code;
int _position;
- QStringHash<int> _parameterNames;
- QList<QHashedString> _parameterNameList;
+ QV4::IdentifierHash<int> _parameterNames;
+ QList<QByteArray> _parameterNameList;
ParameterAccess _parameterAccess;
int _parameterCountForJS;
QString _error;