mirror of
https://github.com/danog/parser.git
synced 2024-12-12 00:59:37 +01:00
30 lines
618 B
Plaintext
30 lines
618 B
Plaintext
|
[
|
||
|
Enum {
|
||
|
name: Identifier {
|
||
|
name: "Foo",
|
||
|
},
|
||
|
implements: [],
|
||
|
backed_type: Some(
|
||
|
String,
|
||
|
),
|
||
|
body: [
|
||
|
EnumCase {
|
||
|
name: Identifier {
|
||
|
name: "Bar",
|
||
|
},
|
||
|
value: None,
|
||
|
},
|
||
|
EnumCase {
|
||
|
name: Identifier {
|
||
|
name: "Baz",
|
||
|
},
|
||
|
value: Some(
|
||
|
LiteralString {
|
||
|
value: "Baz",
|
||
|
},
|
||
|
),
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
]
|