aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compileddata_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-09-06 14:14:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-08 09:00:31 +0200
commit8ac5506f2a6a8f1f6f50d3175a28e3e695f65a81 (patch)
tree00582e04f79809a5e8b07f989c0df995af6b6805 /src/qml/compiler/qv4compileddata_p.h
parent2ed0cd0602093d316bfbce6b1f3f8f8bfe026fca (diff)
Fix error reporting for wrong signal parameter declarations
Record the line/column in the signal and report it together with the url if there was an error in declaring the signals. Change-Id: Idbbee9be271b0ca55709ffc1791637595d7ebd89 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r--src/qml/compiler/qv4compileddata_p.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h
index 50ed39f0d8..3224adad54 100644
--- a/src/qml/compiler/qv4compileddata_p.h
+++ b/src/qml/compiler/qv4compileddata_p.h
@@ -223,6 +223,12 @@ struct Function
// Qml data structures
+struct Location
+{
+ int line;
+ int column;
+};
+
struct Value
{
enum ValueType {
@@ -262,6 +268,7 @@ struct Signal
{
quint32 nameIndex;
quint32 nParameters;
+ Location location;
// Parameter parameters[1];
const Parameter *parameterAt(int idx) const {
@@ -344,12 +351,6 @@ struct Object
}
};
-struct Location
-{
- int line;
- int column;
-};
-
struct Import
{
enum ImportType {