mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-17 04:27:50 +01:00
assigning to tuples should work properly now
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use crate::data::{self, Data, Type};
|
||||
use crate::{
|
||||
data::{self, Data, Type},
|
||||
parsing::SourcePos,
|
||||
};
|
||||
|
||||
use super::MersStatement;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Variable {
|
||||
pub pos_in_src: SourcePos,
|
||||
pub is_init: bool,
|
||||
pub is_ref: bool,
|
||||
pub var: (usize, usize),
|
||||
@@ -55,4 +59,7 @@ impl MersStatement for Variable {
|
||||
.clone()
|
||||
}
|
||||
}
|
||||
fn pos_in_src(&self) -> &SourcePos {
|
||||
&self.pos_in_src
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user