Having this type of error on the ANTLR scope is really bad, because it is never able to provide a useful error and many times this breaks parsing of anything below the partial expression. This is a very common problem because even advanced users will write this type of partial expressions on WIP definitions, and it breaks analysis much more than it should.
The grammar should be fine in expressions like this, and then we can report a missing body in toIrListener.
Having this type of error on the ANTLR scope is really bad, because it is never able to provide a useful error and many times this breaks parsing of anything below the partial expression. This is a very common problem because even advanced users will write this type of partial expressions on WIP definitions, and it breaks analysis much more than it should.
The grammar should be fine in expressions like this, and then we can report a missing body in
toIrListener
.