private void generateAnnotations(AnnotatableNode node, String key, BLangFunction target, BLangSimpleVariable annMapVar) { if (node.getAnnotationAttachments().size() == 0) { return; } BLangSimpleVariable entryVar = createAnnotationMapEntryVar(key, annMapVar, target.body, target.symbol); int annCount = 0; for (AnnotationAttachmentNode attachment : node.getAnnotationAttachments()) { initAnnotation((BLangAnnotationAttachment) attachment, entryVar, target.body, target.symbol, annCount++); } }