forked from qt-creator/qt-creator
QmlJS: Fix import cache usage with 'as' imports.
Change-Id: I6c057e494f87df927adc7b83c6caf1ecc729ac65 Reviewed-on: http://codereview.qt.nokia.com/176 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -194,6 +194,10 @@ void Link::populateImportedTypes(Imports *imports, Document::Ptr doc)
|
||||
foreach (const ImportInfo &info, doc->bind()->imports()) {
|
||||
Import import = d->importCache.value(ImportCacheKey(info));
|
||||
|
||||
// ensure usage of the right ImportInfo, the cached import
|
||||
// can have a different 'as' clause...
|
||||
import.info = info;
|
||||
|
||||
if (!import.object) {
|
||||
switch (info.type()) {
|
||||
case ImportInfo::FileImport:
|
||||
|
Reference in New Issue
Block a user