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
17
18
use super::Block;
use crate::Span;

/// do - end statements block
#[derive(Clone, Debug)]
pub struct StmtDo {
    pub block: Block,
    pub span: Span,
}
impl StmtDo {
    pub fn new(block: Block, span: Span) -> Self {
        Self { block, span }
    }
    /// get the span of the whole do-end block
    pub fn span(&self) -> Span {
        self.span
    }
}