Closed ptal closed 9 years ago
Is it not the default behavior?
The default should be "inline". #[unit_type] is only useful to change the type of a rule to unit if this one doesn't have the unit type. This is part of the postponing of automatic AST generation.
Add a
unit_type
attribute meaning that the rule should have the type()
. It do not propagate in higher rule likeinvisible_type
.rule
has typeOption<()>
, if we usedinvisible_type
it would have the type()
.