diff --git a/src/main/java/de/hhu/stups/codegenerator/generators/ImportGenerator.java b/src/main/java/de/hhu/stups/codegenerator/generators/ImportGenerator.java index 06b1fbcda8a1bbf5cd443d84a7ccd655fb8a0b3b..935decc663eaed66fd548efffdedae8a586cf238 100755 --- a/src/main/java/de/hhu/stups/codegenerator/generators/ImportGenerator.java +++ b/src/main/java/de/hhu/stups/codegenerator/generators/ImportGenerator.java @@ -87,6 +87,7 @@ public class ImportGenerator { importBFreetype(); importFreetype((FreetypeType) type); importBBoolean(); + importSetType(new SetType(null)); } else if (type != null && !(type instanceof UntypedType)) { // null and untyped slip through sometimes, just ignore those throw new IllegalArgumentException("Unsupported type: " + type); diff --git a/src/main/resources/de/hhu/stups/codegenerator/JavaTemplate.stg b/src/main/resources/de/hhu/stups/codegenerator/JavaTemplate.stg index 3649535c75cc948b79eee34d6d2596352d704d29..19c4e3248fd612d3e2b04b8159c8a9de13cdb13c 100644 --- a/src/main/resources/de/hhu/stups/codegenerator/JavaTemplate.stg +++ b/src/main/resources/de/hhu/stups/codegenerator/JavaTemplate.stg @@ -744,6 +744,10 @@ public static final class <name>Constructor implements BObject { return new BBoolean(o instanceof <name>); } + public BSet\<<freetype>\> range() { + throw new UnsupportedOperationException("freetype iteration not supported"); + } + public BBoolean equal(<name>Constructor o) { return new BBoolean(true); }