forked from qt-creator/qt-creator
QmlJSCheck: Add error for mixing translation functions
Change-Id: I0f5fd2edf2d8bf13938d9e18eadada5c8c1b85f2 Reviewed-by: Tapani Mattila <tapani.mattila@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -152,11 +152,14 @@ private:
|
||||
bool wasSuppressed;
|
||||
};
|
||||
|
||||
enum TranslationFunction { qsTr, qsTrId, qsTranslate, noTranslationfunction };
|
||||
|
||||
QHash< int, QList<MessageTypeAndSuppression> > m_disabledMessageTypesByLine;
|
||||
|
||||
bool _importsOk;
|
||||
bool _inStatementBinding;
|
||||
const Imports *_imports;
|
||||
TranslationFunction lastTransLationfunction = noTranslationfunction;
|
||||
};
|
||||
|
||||
} // namespace QmlJS
|
||||
|
||||
Reference in New Issue
Block a user