luaur-analysis 0.1.1

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::records::txn_log::TxnLog;
use alloc::boxed::Box;
use alloc::vec::Vec;

impl TxnLog {
    pub fn txn_log_txn_log(&mut self, _parent: *mut TxnLog) {
        self.parent = _parent;

        if !_parent.is_null() {
            self.shared_seen = unsafe { (*_parent).shared_seen };
        } else {
            self.shared_seen = Box::into_raw(Box::new(Vec::new()));
        }
    }
}