Skip to main content

luaur_code_gen/methods/
function_bytecode_summary_get_counts.rs

1use crate::records::function_bytecode_summary::FunctionBytecodeSummary;
2
3impl FunctionBytecodeSummary {
4    pub fn get_counts(&self, nesting: u32) -> &Vec<u32> {
5        debug_assert!(nesting <= self.get_nesting_limit());
6        &self.counts[nesting as usize]
7    }
8}