forked from qt-creator/qt-creator
QmlJs: sync qmljs parser
The last version of the grammar contains some constructs that the code model needs to know. Task-number: QTCREATORBUG-17842 Change-Id: I6250f96431acc05b19f3fd1b6cc268a07485cf0f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -1045,9 +1045,8 @@ bool Check::visit(UiArrayBinding *ast)
|
||||
bool Check::visit(UiPublicMember *ast)
|
||||
{
|
||||
if (ast->type == UiPublicMember::Property) {
|
||||
// check if the member type is valid
|
||||
if (!ast->memberType.isEmpty()) {
|
||||
const QStringRef name = ast->memberType;
|
||||
if (ast->isValid()) {
|
||||
const QStringRef name = ast->memberTypeName();
|
||||
if (!name.isEmpty() && name.at(0).isLower()) {
|
||||
const QString nameS = name.toString();
|
||||
if (!isValidBuiltinPropertyType(nameS))
|
||||
|
Reference in New Issue
Block a user