chore: add new snapshots and fix errors introduced from ast changes
This commit is contained in:
parent
e5211cf792
commit
abcbe48267
|
@ -5,9 +5,18 @@ description: "Code:\n\n#\"00aaff\""
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 0..9,
|
location: 0..9,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
0,
|
0,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
170,
|
170,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
255,
|
255,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: HexadecimalString,
|
preferred_format: HexadecimalString,
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,18 @@ description: "Code:\n\n#[0, 170, 255]"
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 0..14,
|
location: 0..14,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
0,
|
0,
|
||||||
|
2..3,
|
||||||
|
),
|
||||||
|
(
|
||||||
170,
|
170,
|
||||||
|
5..8,
|
||||||
|
),
|
||||||
|
(
|
||||||
255,
|
255,
|
||||||
|
10..13,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: ArrayOfBytes(
|
preferred_format: ArrayOfBytes(
|
||||||
Decimal {
|
Decimal {
|
||||||
|
|
|
@ -5,11 +5,26 @@ description: "Code:\n\n\"aiken\""
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 0..7,
|
location: 0..7,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
97,
|
97,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
105,
|
105,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
107,
|
107,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
101,
|
101,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
110,
|
110,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,13 +5,34 @@ description: "Code:\n\n\"\\\"aiken\\\"\""
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 0..11,
|
location: 0..11,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
34,
|
34,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
97,
|
97,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
105,
|
105,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
107,
|
107,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
101,
|
101,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
110,
|
110,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
34,
|
34,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,11 +12,26 @@ Call {
|
||||||
value: ByteArray {
|
value: ByteArray {
|
||||||
location: 13..20,
|
location: 13..20,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
65,
|
65,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
105,
|
105,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
107,
|
107,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
101,
|
101,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
110,
|
110,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
|
|
|
@ -12,11 +12,26 @@ Call {
|
||||||
value: ByteArray {
|
value: ByteArray {
|
||||||
location: 25..32,
|
location: 25..32,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
65,
|
65,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
105,
|
105,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
107,
|
107,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
101,
|
101,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
110,
|
110,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
|
|
|
@ -22,11 +22,26 @@ RecordUpdate {
|
||||||
value: ByteArray {
|
value: ByteArray {
|
||||||
location: 21..28,
|
location: 21..28,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
65,
|
65,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
105,
|
105,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
107,
|
107,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
101,
|
101,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
110,
|
110,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,18 +19,36 @@ Trace {
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 18..23,
|
location: 18..23,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
102,
|
102,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
111,
|
111,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
111,
|
111,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 25..30,
|
location: 25..30,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
98,
|
98,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
97,
|
97,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
114,
|
114,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,18 +20,36 @@ Trace {
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 19..24,
|
location: 19..24,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
102,
|
102,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
111,
|
111,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
111,
|
111,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 26..31,
|
location: 26..31,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
98,
|
98,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
97,
|
97,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
114,
|
114,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,9 +15,18 @@ When {
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 18..27,
|
location: 18..27,
|
||||||
value: [
|
value: [
|
||||||
|
(
|
||||||
0,
|
0,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
171,
|
171,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
205,
|
205,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: HexadecimalString,
|
preferred_format: HexadecimalString,
|
||||||
},
|
},
|
||||||
|
@ -33,19 +42,58 @@ When {
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 40..55,
|
location: 40..55,
|
||||||
value: [
|
value: [
|
||||||
|
(
|
||||||
65,
|
65,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
105,
|
105,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
107,
|
107,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
101,
|
101,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
110,
|
110,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
44,
|
44,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
32,
|
32,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
114,
|
114,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
111,
|
111,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
99,
|
99,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
107,
|
107,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
115,
|
115,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
33,
|
33,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
|
@ -61,10 +109,22 @@ When {
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 68..81,
|
location: 68..81,
|
||||||
value: [
|
value: [
|
||||||
|
(
|
||||||
1,
|
1,
|
||||||
|
70..71,
|
||||||
|
),
|
||||||
|
(
|
||||||
2,
|
2,
|
||||||
|
73..74,
|
||||||
|
),
|
||||||
|
(
|
||||||
3,
|
3,
|
||||||
|
76..77,
|
||||||
|
),
|
||||||
|
(
|
||||||
4,
|
4,
|
||||||
|
79..80,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: ArrayOfBytes(
|
preferred_format: ArrayOfBytes(
|
||||||
Decimal {
|
Decimal {
|
||||||
|
@ -84,9 +144,18 @@ When {
|
||||||
ByteArray {
|
ByteArray {
|
||||||
location: 94..113,
|
location: 94..113,
|
||||||
value: [
|
value: [
|
||||||
|
(
|
||||||
0,
|
0,
|
||||||
|
96..100,
|
||||||
|
),
|
||||||
|
(
|
||||||
171,
|
171,
|
||||||
|
102..106,
|
||||||
|
),
|
||||||
|
(
|
||||||
205,
|
205,
|
||||||
|
108..112,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: ArrayOfBytes(
|
preferred_format: ArrayOfBytes(
|
||||||
Hexadecimal,
|
Hexadecimal,
|
||||||
|
|
|
@ -18,9 +18,18 @@ Module {
|
||||||
value: ByteArray {
|
value: ByteArray {
|
||||||
location: 21..26,
|
location: 21..26,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
226,
|
226,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
152,
|
152,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
|
(
|
||||||
133,
|
133,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,7 +18,10 @@ Module {
|
||||||
value: ByteArray {
|
value: ByteArray {
|
||||||
location: 21..24,
|
location: 21..24,
|
||||||
bytes: [
|
bytes: [
|
||||||
|
(
|
||||||
42,
|
42,
|
||||||
|
0..0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
preferred_format: Utf8String,
|
preferred_format: Utf8String,
|
||||||
},
|
},
|
||||||
|
|
|
@ -555,7 +555,11 @@ impl<'a, 'b> ExprTyper<'a, 'b> {
|
||||||
bytes,
|
bytes,
|
||||||
preferred_format,
|
preferred_format,
|
||||||
location,
|
location,
|
||||||
} => self.infer_bytearray(bytes, preferred_format, location),
|
} => self.infer_bytearray(
|
||||||
|
bytes.into_iter().map(|(b, _)| b).collect(),
|
||||||
|
preferred_format,
|
||||||
|
location,
|
||||||
|
),
|
||||||
|
|
||||||
UntypedExpr::CurvePoint {
|
UntypedExpr::CurvePoint {
|
||||||
location,
|
location,
|
||||||
|
|
|
@ -210,7 +210,7 @@ impl<'a, 'b> PatternTyper<'a, 'b> {
|
||||||
|
|
||||||
Ok(Pattern::ByteArray {
|
Ok(Pattern::ByteArray {
|
||||||
location,
|
location,
|
||||||
value,
|
value: value.into_iter().map(|(b, _)| b).collect(),
|
||||||
preferred_format,
|
preferred_format,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,7 +126,7 @@ impl SimpleExpr {
|
||||||
},
|
},
|
||||||
SimpleExpr::ByteArray(bs, preferred_format) => UntypedExpr::ByteArray {
|
SimpleExpr::ByteArray(bs, preferred_format) => UntypedExpr::ByteArray {
|
||||||
location: Span::empty(),
|
location: Span::empty(),
|
||||||
bytes: bs.to_vec(),
|
bytes: bs.iter().map(|b| (*b, Span::empty())).collect(),
|
||||||
preferred_format: *preferred_format,
|
preferred_format: *preferred_format,
|
||||||
},
|
},
|
||||||
SimpleExpr::List(es) => match annotation {
|
SimpleExpr::List(es) => match annotation {
|
||||||
|
|
Loading…
Reference in New Issue