luaur_analysis/records/
statement.rs1use luaur_ast::records::location::Location;
2
3#[allow(non_camel_case_types)]
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5pub struct Statement {
6 pub(crate) start: Location,
7 pub(crate) lastLine: u32,
8 pub(crate) flagged: bool,
9}
10
11impl Default for Statement {
12 fn default() -> Self {
13 Self {
14 start: Location::default(),
15 lastLine: 0,
16 flagged: false,
17 }
18 }
19}
20
21#[allow(non_snake_case)]
22impl Statement {
23 pub const fn lastLine(&self) -> u32 {
24 self.lastLine
25 }
26}