Commit de737575 authored by Lubomir Bulej's avatar Lubomir Bulej

Allow fields without annotations in DiSL classes

Relaxed the DiSL class parser to allow DiSL class to contain fields
without annotations. The parser previously threw exceptions, which
made it impossible to include guards in the DiSL class. The parser
should really only choke on fields without annotations that are
actually accessed from DiSL snippets.
parent eea4bfb1
......@@ -101,8 +101,8 @@ abstract class AbstractParser {
for (final FieldNode field : fields) {
if (field.invisibleAnnotations == null) {
throw new ParserException("DiSL annotation for field "
+ className + "." + + " is missing");
// Ignore fields without annotations.
if (field.invisibleAnnotations.size() > 1) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment