diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2021-09-28 15:23:42 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2021-11-12 20:04:19 +0000 |
commit | 39738dee7737c539c94f0c7aa022126cd8e94f28 (patch) | |
tree | b59ccdd4d38947f271917250fddd21af0ff49801 /src/libs/qmljs/qmljsstaticanalysismessage.h | |
parent | ebc753cf9bcf58918efe5282449966af3a37d132 (diff) |
QmlJS: Add error message for Component with multiple children
Component is only allowed to have a single child element, that will
be the root element of the component.
If there is no child at all we create a warning. Having no child is
temporarily required.
Change-Id: I5c0d9d9cdf1be106b20ed4f1134a973d58126498
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/libs/qmljs/qmljsstaticanalysismessage.h')
-rw-r--r-- | src/libs/qmljs/qmljsstaticanalysismessage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsstaticanalysismessage.h b/src/libs/qmljs/qmljsstaticanalysismessage.h index e651533fd7..51a517d235 100644 --- a/src/libs/qmljs/qmljsstaticanalysismessage.h +++ b/src/libs/qmljs/qmljsstaticanalysismessage.h @@ -132,6 +132,8 @@ enum Type { ErrInvalidArrayValueLength = 323, ErrHitMaximumRecursion = 324, WarnLogicalValueDoesNotDependOnValues = 325, + ErrToManyComponentChildren = 326, + WarnComponentRequiresChildren = 327, WarnDuplicateImport = 400 }; |