Fix positions.

This commit is contained in:
Stephen Chung
2022-02-10 17:55:32 +08:00
parent 3050e38c5e
commit d23d1159ab
10 changed files with 95 additions and 53 deletions

View File

@@ -402,7 +402,7 @@ impl Stmt {
}
/// Get the [position][Position] of this statement.
#[must_use]
pub const fn position(&self) -> Position {
pub fn position(&self) -> Position {
match self {
Self::Noop(pos)
| Self::BreakLoop(.., pos)