1
Fork 0

add span to statements

This commit is contained in:
ouz-a 2023-09-30 17:18:31 +03:00 committed by Oğuz Ağcayazı
parent 999a354a81
commit a79567b01c
3 changed files with 98 additions and 73 deletions

View file

@ -191,7 +191,13 @@ pub enum NonDivergingIntrinsic {
}
#[derive(Clone, Debug)]
pub enum Statement {
pub struct Statement {
pub kind: StatementKind,
pub span: Span,
}
#[derive(Clone, Debug)]
pub enum StatementKind {
Assign(Place, Rvalue),
FakeRead(FakeReadCause, Place),
SetDiscriminant { place: Place, variant_index: VariantIdx },