1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::Span;
use crate::SpannedString;

/// Goto statement
#[derive(Clone, Debug)]
pub struct StmtGoto {
    pub name: SpannedString,
    pub span: Span,
}
impl StmtGoto {
    pub fn new(name: SpannedString, span: Span) -> Self {
        Self { name, span }
    }
    /// get the span of the whole goto statement
    pub fn span(&self) -> Span {
        self.span
    }
}