Skip to main content

luaur_code_gen/records/
function_bytecode_summary.rs

1extern crate alloc;
2
3use alloc::string::String;
4use alloc::vec::Vec;
5use luaur_common::enums::luau_opcode::LuauOpcode;
6
7#[derive(Debug, Clone)]
8#[repr(C)]
9pub struct FunctionBytecodeSummary {
10    pub source: String,
11    pub name: String,
12    pub line: i32,
13    pub nesting_limit: u32,
14    pub counts: Vec<Vec<u32>>,
15}
16
17impl FunctionBytecodeSummary {
18    pub const LOP__COUNT: u32 = LuauOpcode::LOP__COUNT as u32;
19}