aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qqmlcodegenerator_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-09-30 09:41:35 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-30 18:23:17 +0200
commit23793482e9b187441203fb629b459245c504dfba (patch)
tree193d26239f7235ed2d0926f63b97b5b532c3b48b /src/qml/compiler/qqmlcodegenerator_p.h
parent7df73c27121149c36a6c8a21850d85728ea79ad5 (diff)
Fix invalid alias error reporting in new compiler
Match exactly the VME code path by reporting the right type of error as well as the right hand side of the alias binding if necessary. Change-Id: I35d192a20641e0acbf25d20f3dc5fb53cc7cbae5 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qqmlcodegenerator_p.h')
-rw-r--r--src/qml/compiler/qqmlcodegenerator_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/compiler/qqmlcodegenerator_p.h b/src/qml/compiler/qqmlcodegenerator_p.h
index 9273892d7c..ec75c38160 100644
--- a/src/qml/compiler/qqmlcodegenerator_p.h
+++ b/src/qml/compiler/qqmlcodegenerator_p.h
@@ -247,6 +247,8 @@ public:
QString stringAt(int index) const { return jsGenerator->strings.at(index); }
+ static bool isStatementNodeScript(AST::Statement *statement);
+
QList<QQmlError> errors;
QList<QV4::CompiledData::Import*> _imports;