feat: add FunctionDefinition::add_attribute
#5944
Merged
FunctionDefinition::add_attribute
#5944