use crate::records::identifier::Identifier;
use luaur_ast::records::ast_local::AstLocal;

pub fn mk_name_ast_local(local: &AstLocal) -> Identifier {
    Identifier::new(
        unsafe {
            core::ffi::CStr::from_ptr(local.name.value)
                .to_string_lossy()
                .into_owned()
        },
        local as *const AstLocal,
    )
}
