forked from qt-creator/qt-creator
QMlJSCheck: Add missed types of State changes
Change-Id: I08ed689dfa92477e35961b7b0b1d407f0c974979 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
08b780205a
commit
10954e07a5
@@ -869,6 +869,8 @@ void Check::visitQmlObject(Node *ast, UiQualifiedId *typeId,
|
||||
const QString typeName = getRightMostIdentifier(typeId)->name.toString();
|
||||
|
||||
if (!m_typeStack.isEmpty() && m_typeStack.last() == QLatin1String("State")
|
||||
&& typeId->name.toString() != "AnchorChanges"
|
||||
&& typeId->name.toString() != "ParentChange"
|
||||
&& typeId->name.toString() != "PropertyChanges"
|
||||
&& typeId->name.toString() != "StateChangeScript")
|
||||
addMessage(StateCannotHaveChildItem, typeErrorLocation, typeName);
|
||||
|
Reference in New Issue
Block a user