QmlJS: Remove the strict separation of types and attached types.
The problem was that several lookup calls suddenly failed because the actual QML types were no longer in the default scope chain. However, the QML documentation says the type names are in the scope. Also, 'MyComponent.' in a JS-expression context only showed the attached properties of MyComponent and missed the enums. With this change completion now may offers too many options, but that's better than missing some. This reverts parts of 490f2797 Reviewed-by: Leandro Melo
Showing
- src/libs/qmljs/qmljscheck.cpp 1 addition, 1 deletionsrc/libs/qmljs/qmljscheck.cpp
- src/libs/qmljs/qmljsinterpreter.cpp 5 additions, 66 deletionssrc/libs/qmljs/qmljsinterpreter.cpp
- src/libs/qmljs/qmljsinterpreter.h 0 additions, 14 deletionssrc/libs/qmljs/qmljsinterpreter.h
- src/libs/qmljs/qmljsscopebuilder.cpp 0 additions, 1 deletionsrc/libs/qmljs/qmljsscopebuilder.cpp
- src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp 1 addition, 1 deletion...gins/qmldesigner/designercore/model/texttomodelmerger.cpp
- src/plugins/qmljseditor/qmljsfindreferences.cpp 1 addition, 1 deletionsrc/plugins/qmljseditor/qmljsfindreferences.cpp
Loading
Please register or sign in to comment