aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlformat/dumpastvisitor.h
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2020-01-15 11:25:18 +0100
committerMaximilian Goldstein <max.goldstein@qt.io>2020-01-17 10:02:29 +0100
commit9e674be4fb8c369873a009f58e3152a12d2c4cce (patch)
tree034090e7ef4723bafb9983f10ba285fb84735273 /tools/qmlformat/dumpastvisitor.h
parent47b187231ab1c45f8609bcbbf6f85f8a05bc9be7 (diff)
qmlformat: Fix some language features being unsupported
qmlformat now supports: - arrow functions - generator functions - this expressions - object patterns - regex literals - type expressions - plain expressions Aborts if an error occurs during dumping now. Also now automatically tests qmlformat against all example / test qml files. Change-Id: Idc24004c6f2c1cd65289bcad75985a1ef047c8d2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmlformat/dumpastvisitor.h')
-rw-r--r--tools/qmlformat/dumpastvisitor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qmlformat/dumpastvisitor.h b/tools/qmlformat/dumpastvisitor.h
index e73a7b628f..2001f4366e 100644
--- a/tools/qmlformat/dumpastvisitor.h
+++ b/tools/qmlformat/dumpastvisitor.h
@@ -89,6 +89,9 @@ private:
QString parsePatternElement(PatternElement *element, bool scope = true);
QString parsePatternElementList(PatternElementList *element);
+ QString parsePatternProperty(PatternProperty *property);
+ QString parsePatternPropertyList(PatternPropertyList *list);
+
QString parseArgumentList(ArgumentList *list);
QString parseUiParameterList(UiParameterList *list);