lua_parser 0.10.0

syntax parser for lua language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::Span;

/// break statement
#[derive(Debug, Clone, Copy)]
pub struct StmtBreak {
    pub span: Span,
}
impl StmtBreak {
    pub fn new(span: Span) -> Self {
        Self { span }
    }
    /// get the span of the break statement.
    pub fn span(&self) -> Span {
        self.span
    }
}