mirror of
https://github.com/danog/parser.git
synced 2024-12-15 10:26:56 +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",
|
||
|
},
|
||
|
),
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
]
|