aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmltc/main.cpp
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2022-03-10 09:37:01 +0100
committerAndrei Golubev <andrei.golubev@qt.io>2022-03-15 12:55:56 +0100
commitefe00aaf1b9535198ca8a2e86e8fb8e70a41fe00 (patch)
tree9590ea36fbe3d204f1a123bf27625253b3ad5d7d /tools/qmltc/main.cpp
parent8c658f618835217b3115c43080e22f28636f1c76 (diff)
qmltc: Use prototype/codegenerator in qmltccompiler
While deeper integration requires more changes, we can already establish the general relationship now. The idea: slowly migrate to the proper qmltc compiler code. To achieve this, we can step by step distill prototype's code generator in the qmltc code generation. Right now, do it at the highest level by compiling everything with the prototype's codegen (as before) but within the "proper" qmltc compiler Change-Id: I8a1e62f0559ff437ec2a4b0727147a441367c8e2 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools/qmltc/main.cpp')
-rw-r--r--tools/qmltc/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/qmltc/main.cpp b/tools/qmltc/main.cpp
index 49e218f4fe..bb616689b9 100644
--- a/tools/qmltc/main.cpp
+++ b/tools/qmltc/main.cpp
@@ -27,7 +27,6 @@
****************************************************************************/
#include "qmltccommandlineutils.h"
-#include "prototype/codegenerator.h"
#include "qmltcvisitor.h"
#include "qmltctyperesolver.h"
@@ -216,8 +215,8 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
- CodeGenerator generator(url, &logger, &document, &typeResolver, &info);
- generator.generate();
+ QmltcCompiler compiler(url, &typeResolver, &visitor, &logger);
+ compiler.compile(info, &document);
if (logger.hasErrors())
return EXIT_FAILURE;