In the pseudo-code, the call of populateDataFromInstance() should have one more argument, "attachmentPointer", e.g. like this:
template Data = populateDataFromInstance(T, ldo, attachmentPointer, instance)
In general, I suggest to present the three parts of pseudo-code as pseudo-functions - just by inserting the signature above the code - in order to make the required input clearer:
resolveTemplate(T, initialTemplateKeyword, ldo, attachmentPointer, instance)... (First block of pseudo-code)` populateDataFromInstance(T, ldo, attachmentPointer, instance)... (Second block of pseudo-code)acceptInput(T, ldo, templateData)... (Third block of pseudo-code)`
In the pseudo-code, the call of
populateDataFromInstance()
should have one more argument, "attachmentPointer", e.g. like this:template Data = populateDataFromInstance(T, ldo, attachmentPointer, instance)
In general, I suggest to present the three parts of pseudo-code as pseudo-functions - just by inserting the signature above the code - in order to make the required input clearer:
resolveTemplate(T, initialTemplateKeyword, ldo, attachmentPointer, instance)
... (First block of pseudo-code)
`
populateDataFromInstance(T, ldo, attachmentPointer, instance)