luaur_bytecode/methods/call_inliner_has_edge.rs
1use crate::enums::bc_block_edge_kind::BcBlockEdgeKind;
2use crate::records::call_inliner::CallInliner;
3use crate::type_aliases::bc_edges::BcEdges;
4
5impl<'a> CallInliner<'a> {
6 pub fn has_edge(&self, edges: &BcEdges, kind: BcBlockEdgeKind) -> bool {
7 for e in edges {
8 if e.kind == kind {
9 return true;
10 }
11 }
12 false
13 }
14}