Skip to main content

luaur_ast/methods/
ast_expr_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_expr_function::AstExprFunction;
4
5impl AstExprFunction {
6    pub fn has_attribute(&self, attribute_type: AstAttrType) -> bool {
7        has_attribute_in_array(self.attributes, attribute_type)
8    }
9}