feat: add FunctionDef::has_named_attribute
#5870
Merged
FunctionDef::has_named_attribute
#5870