aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compileddata_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-02-20 12:21:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-02 14:48:03 +0100
commit1c509a887a177939556514cd7cd389031d05117c (patch)
tree4c3694e329a1f6c7416a15924e5c96347ccde510 /src/qml/compiler/qv4compileddata_p.h
parent8a81380cca802e230011464c9f25c0c1604909d7 (diff)
[new compiler] When resolving names of attached properties, don't report the error at import time
Instead report it later with a more specific error message. This is consistent with the old compiler. Change-Id: Iba345b7ecc8a9ff474938f69118665eb0d965594 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h
index 675282fb8c..1f6bdfb2cf 100644
--- a/src/qml/compiler/qv4compileddata_p.h
+++ b/src/qml/compiler/qv4compileddata_p.h
@@ -80,9 +80,11 @@ struct TypeReference
TypeReference(const Location &loc)
: location(loc)
, needsCreation(false)
+ , errorWhenNotFound(false)
{}
Location location; // first use
- bool needsCreation; // whether the type needs to be creatable or not
+ bool needsCreation : 1; // whether the type needs to be creatable or not
+ bool errorWhenNotFound: 1;
};
// map from name index to location of first use