luaur-ast 0.1.1

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

#[allow(non_snake_case)]
pub(crate) fn has_attribute_in_array(
    attributes: AstArray<*mut AstAttr>,
    attribute_type: AstAttrType,
) -> bool {
    !find_attribute_in_array(attributes, attribute_type).is_null()
}