luaur_ast/methods/ast_stat_declare_function_has_attribute.rs
1use crate::functions::has_attribute_in_array::has_attribute_in_array;
2use crate::records::ast_attr::AstAttrType;
3use crate::records::ast_stat_declare_function::AstStatDeclareFunction;
4
5impl AstStatDeclareFunction {
6 pub fn has_attribute(&self, attribute_type: AstAttrType) -> bool {
7 has_attribute_in_array(self.attributes, attribute_type)
8 }
9}