use structure Position in macro doc_gen mode so it can be merged