aiken/crates/aiken-lang/src/parser/expr/snapshots/expect_expect_let.snap

53 lines
1.3 KiB
Plaintext

---
source: crates/aiken-lang/src/parser/expr/assignment.rs
description: "Code:\n\nexpect { let a = 42 } = foo"
---
Assignment {
location: 0..21,
value: Sequence {
location: 7..21,
expressions: [
Assignment {
location: 9..19,
value: UInt {
location: 17..19,
value: "42",
base: Decimal {
numeric_underscore: false,
},
},
patterns: [
AssignmentPattern {
pattern: Var {
location: 13..14,
name: "a",
},
annotation: None,
},
],
kind: Let {
backpassing: false,
},
},
],
},
patterns: [
AssignmentPattern {
pattern: Constructor {
is_record: false,
location: 0..21,
name: "True",
arguments: [],
module: None,
constructor: (),
with_spread: false,
tipo: (),
},
annotation: None,
},
],
kind: Expect {
backpassing: false,
},
}