diff options
author | Christian Kamm <[email protected]> | 2010-02-18 15:01:26 +0100 |
---|---|---|
committer | Christian Kamm <[email protected]> | 2010-02-18 15:01:26 +0100 |
commit | 2440bfc5dc69da8ede1926fdc4de647e9a418f94 (patch) | |
tree | 645448201807b82a8204f4718a12efd6829384be /src/libs/qmljs/qmljscheck.cpp | |
parent | e8565890fb854aee3dcb758fee816c740030811f (diff) |
Don't try to look up members of attached properties.
Diffstat (limited to 'src/libs/qmljs/qmljscheck.cpp')
-rw-r--r-- | src/libs/qmljs/qmljscheck.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp index 39ab69fd04f..b79a6495caa 100644 --- a/src/libs/qmljs/qmljscheck.cpp +++ b/src/libs/qmljs/qmljscheck.cpp @@ -190,8 +190,11 @@ void Check::checkScopeObjectMember(const UiQualifiedId *id) return; // attached properties - if (! propertyName.isEmpty() && propertyName[0].isUpper()) + bool isAttachedProperty = false; + if (! propertyName.isEmpty() && propertyName[0].isUpper()) { + isAttachedProperty = true; scopeObject = _context.typeEnvironment(_doc.data()); + } if (! scopeObject) return; @@ -206,6 +209,10 @@ void Check::checkScopeObjectMember(const UiQualifiedId *id) return; } + // can't look up members for attached properties + if (isAttachedProperty) + return; + // member lookup const UiQualifiedId *idPart = id; while (idPart->next) { |