for (Port p : ThingMLHelpers.allPorts(thing)) {
for (Message m : p.getSends()) {
builder.append("this." + m.getName() + "On" + p.getName() + "Listeners = [];\n");
}
}
<BUG>builder.append("//}\n");
}</BUG>
protected void generateSendMethods(Thing thing, StringBuilder builder, Context ctx) {//TODO: generate only for message that actually can be sent
Map<Port, List<Message>> sent = ThingHelper.allSentMessages(thing);
for (Port p : sent.keySet()) {

for (Port p : ThingMLHelpers.allPorts(thing)) {
for (Message m : p.getSends()) {
builder.append("this." + m.getName() + "On" + p.getName() + "Listeners = [];\n");
}
}
}
}
protected void generateSendMethods(Thing thing, StringBuilder builder, Context ctx) {//TODO: generate only for message that actually can be sent
Map<Port, List<Message>> sent = ThingHelper.allSentMessages(thing);
for (Port p : sent.keySet()) {
