2022-09-03 13:36:28 -05:00
|
|
|
pub enum Foo {
|
2023-01-01 12:53:50 -06:00
|
|
|
// @is "$.index[*][?(@.name=='Addition')].inner.discriminant.value" '"0"'
|
|
|
|
// @is "$.index[*][?(@.name=='Addition')].inner.discriminant.expr" '"{ _ }"'
|
2022-09-03 13:36:28 -05:00
|
|
|
Addition = 0 + 0,
|
2023-01-01 12:53:50 -06:00
|
|
|
// @is "$.index[*][?(@.name=='Bin')].inner.discriminant.value" '"1"'
|
|
|
|
// @is "$.index[*][?(@.name=='Bin')].inner.discriminant.expr" '"0b1"'
|
2022-09-03 13:36:28 -05:00
|
|
|
Bin = 0b1,
|
2023-01-01 12:53:50 -06:00
|
|
|
// @is "$.index[*][?(@.name=='Oct')].inner.discriminant.value" '"2"'
|
|
|
|
// @is "$.index[*][?(@.name=='Oct')].inner.discriminant.expr" '"0o2"'
|
2022-09-03 13:36:28 -05:00
|
|
|
Oct = 0o2,
|
2023-01-01 12:53:50 -06:00
|
|
|
// @is "$.index[*][?(@.name=='PubConst')].inner.discriminant.value" '"3"'
|
|
|
|
// @is "$.index[*][?(@.name=='PubConst')].inner.discriminant.expr" '"THREE"'
|
2022-09-03 13:36:28 -05:00
|
|
|
PubConst = THREE,
|
2023-01-01 12:53:50 -06:00
|
|
|
// @is "$.index[*][?(@.name=='Hex')].inner.discriminant.value" '"4"'
|
|
|
|
// @is "$.index[*][?(@.name=='Hex')].inner.discriminant.expr" '"0x4"'
|
2022-09-03 13:36:28 -05:00
|
|
|
Hex = 0x4,
|
2023-01-01 12:53:50 -06:00
|
|
|
// @is "$.index[*][?(@.name=='Cast')].inner.discriminant.value" '"5"'
|
|
|
|
// @is "$.index[*][?(@.name=='Cast')].inner.discriminant.expr" '"{ _ }"'
|
2022-09-03 13:36:28 -05:00
|
|
|
Cast = 5 as isize,
|
2023-01-01 12:53:50 -06:00
|
|
|
// @is "$.index[*][?(@.name=='PubCall')].inner.discriminant.value" '"6"'
|
|
|
|
// @is "$.index[*][?(@.name=='PubCall')].inner.discriminant.expr" '"{ _ }"'
|
2022-09-03 13:36:28 -05:00
|
|
|
PubCall = six(),
|
2023-01-01 12:53:50 -06:00
|
|
|
// @is "$.index[*][?(@.name=='PrivCall')].inner.discriminant.value" '"7"'
|
|
|
|
// @is "$.index[*][?(@.name=='PrivCall')].inner.discriminant.expr" '"{ _ }"'
|
2022-09-03 13:36:28 -05:00
|
|
|
PrivCall = seven(),
|
2023-01-01 12:53:50 -06:00
|
|
|
// @is "$.index[*][?(@.name=='PrivConst')].inner.discriminant.value" '"8"'
|
|
|
|
// @is "$.index[*][?(@.name=='PrivConst')].inner.discriminant.expr" '"EIGHT"'
|
2022-09-03 13:36:28 -05:00
|
|
|
PrivConst = EIGHT,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub const THREE: isize = 3;
|
|
|
|
const EIGHT: isize = 8;
|
|
|
|
|
|
|
|
pub const fn six() -> isize {
|
|
|
|
6
|
|
|
|
}
|
|
|
|
const fn seven() -> isize {
|
|
|
|
7
|
|
|
|
}
|