luaur-ast 0.1.3

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
use crate::functions::has_attribute_in_array::has_attribute_in_array;
use crate::records::ast_attr::AstAttrType;
use crate::records::ast_stat_declare_function::AstStatDeclareFunction;

impl AstStatDeclareFunction {
    pub fn has_attribute(&self, attribute_type: AstAttrType) -> bool {
        has_attribute_in_array(self.attributes, attribute_type)
    }
}