luaur-ast 0.1.2

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::functions::find_attribute_in_array::find_attribute_in_array;
use crate::records::ast_attr::{AstAttr, AstAttrType};
use crate::records::ast_expr_function::AstExprFunction;

impl AstExprFunction {
    #[allow(non_snake_case)]
    pub fn get_attribute(&self, attribute_type: AstAttrType) -> *mut AstAttr {
        find_attribute_in_array(self.attributes, attribute_type)
    }
}