Details
-
Task
-
Resolution: Done
-
P2: Important
-
6.4.0
-
c52b7fdca8 (qt/qtdeclarative/dev) c52b7fdca8 (qt/tqtc-qtdeclarative/dev)
Description
QQmlJSScope::findType() is used in qqmljsimportvisitor and qqmljsimporter with a contextualtypes. Contextualtypes is a map from string to qml and cpp names, which makes the code pretty confusing to read as one never knows if the current name is a qml type or a cpp type.
Tasks:
- find out why qqmljsimporter mixes up composite and non-composite types
- if it has a good reason: document this strange behavior with internal documentation everywhere it happens
- Otherwise: refactor ContextualTypes and QQmlJSImporter to separate composite and non-composite types