diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2014-03-18 23:39:02 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-19 17:24:01 +0100 |
commit | 12e55eaa653107982de9b88f6459f0e16660a35e (patch) | |
tree | 462b1d84a7a62168868b299ee03b1df10cc9d399 /src/qml/compiler/qqmlirbuilder_p.h | |
parent | 8a0573b92924ba3fcf4228730c2c693b52c41c28 (diff) |
Cleanup: Remove last traces of QQmlScript
What remains is the code for removing .pragma from script source code (and
replacing it with white-space to preserve line/column numbers). The previous
code even returned the value of the pragmas, but for the remaining caller sites
that value isn't used, so we can just return void.
Change-Id: I16db15da236970660b817d6c4493005365a7a1af
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qqmlirbuilder_p.h')
-rw-r--r-- | src/qml/compiler/qqmlirbuilder_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/compiler/qqmlirbuilder_p.h b/src/qml/compiler/qqmlirbuilder_p.h index c2e1ee496e..a345290672 100644 --- a/src/qml/compiler/qqmlirbuilder_p.h +++ b/src/qml/compiler/qqmlirbuilder_p.h @@ -43,18 +43,19 @@ #include <private/qqmljsast_p.h> #include <private/qqmlpool_p.h> -#include <private/qqmlscript_p.h> #include <private/qqmljsengine_p.h> #include <private/qv4compiler_p.h> #include <private/qv4compileddata_p.h> #include <private/qqmljsmemorypool_p.h> #include <private/qv4codegen_p.h> #include <private/qv4compiler_p.h> +#include <private/qqmlpropertycache_p.h> #include <QTextStream> #include <QCoreApplication> QT_BEGIN_NAMESPACE +class QQmlContextData; class QQmlTypeNameCache; namespace QmlIR { @@ -324,6 +325,7 @@ struct Q_QML_EXPORT Document QString stringAt(int index) const { return jsGenerator.strings.value(index); } void extractScriptMetaData(QString &script, QQmlError *error); + static void removeScriptPragmas(QString &script); }; struct Q_QML_EXPORT IRBuilder : public QQmlJS::AST::Visitor |