luaur-bytecode 0.1.3

Luau bytecode format and builder (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::enums::bc_block_edge_kind::BcBlockEdgeKind;
use crate::records::call_inliner::CallInliner;
use crate::type_aliases::bc_edges::BcEdges;

impl<'a> CallInliner<'a> {
    pub fn has_edge(&self, edges: &BcEdges, kind: BcBlockEdgeKind) -> bool {
        for e in edges {
            if e.kind == kind {
                return true;
            }
        }
        false
    }
}