Add an infer-types command to langium-cli that runs the type inference (type collector) and generates a type declaration for every inferred type. The result shall be written to a file types.langium in the CWD or an output file specified with an -o / --output option.
Add an
infer-types
command tolangium-cli
that runs the type inference (type collector) and generates a type declaration for every inferred type. The result shall be written to a filetypes.langium
in the CWD or an output file specified with an-o
/--output
option.See https://github.com/langium/langium/issues/385#issuecomment-1017867845.