Attributes with function name

You could use a function reference there, like

@description &A.function1/1

But I’m wondering what you want to do with it? Obviously module A would then need to be compiled first.