diff --git a/org.lflang/src/org/lflang/ASTUtils.java b/org.lflang/src/org/lflang/ASTUtils.java index 136cd51ec0..8408a1b58e 100644 --- a/org.lflang/src/org/lflang/ASTUtils.java +++ b/org.lflang/src/org/lflang/ASTUtils.java @@ -553,8 +553,6 @@ public static LinkedHashSet superClasses(Reactor reactor) { */ public static List collectElements(Reactor definition, Function> elements) { List result = new ArrayList(); - // Add elements of the current reactor. - result.addAll(elements.apply(definition)); // Add elements of elements defined in superclasses. LinkedHashSet s = superClasses(definition); if (s != null) { @@ -562,6 +560,8 @@ public static List collectElements(Reactor definition, Function