]> Git Repo - qemu.git/blame - tests/qapi-schema/doc-good.out
qapi: Clean up modular built-in code generation a bit
[qemu.git] / tests / qapi-schema / doc-good.out
CommitLineData
dcac6471 1module None
8a84767c 2object q_empty
1e381b65 3enum QType
8a84767c 4 prefix QTYPE
1e381b65
MAL
5 member none
6 member qnull
7 member qnum
8 member qstring
9 member qdict
10 member qlist
11 member qbool
cf40a0a5 12module doc-good.json
1e381b65
MAL
13enum Enum
14 member one
a35c9bf8 15 if ['defined(IFONE)']
1e381b65 16 member two
901a34a4 17 if ['defined(IFCOND)']
80d1f2e4
MA
18object Base
19 member base1: Enum optional=False
8a84767c
MA
20object Variant1
21 member var1: str optional=False
8867bf08 22 if ['defined(IFSTR)']
8a84767c 23object Variant2
80d1f2e4
MA
24object Object
25 base Base
26 tag base1
27 case one: Variant1
28 case two: Variant2
01ae9cc2 29 if ['IFTWO']
8a84767c
MA
30object q_obj_Variant1-wrapper
31 member data: Variant1 optional=False
32object q_obj_Variant2-wrapper
33 member data: Variant2 optional=False
1e381b65
MAL
34enum SugaredUnionKind
35 member one
36 member two
01ae9cc2 37 if ['IFTWO']
80d1f2e4
MA
38object SugaredUnion
39 member type: SugaredUnionKind optional=False
40 tag type
41 case one: q_obj_Variant1-wrapper
42 case two: q_obj_Variant2-wrapper
01ae9cc2 43 if ['IFTWO']
80d1f2e4
MA
44object q_obj_cmd-arg
45 member arg1: int optional=False
46 member arg2: str optional=True
47 member arg3: bool optional=False
8a84767c 48command cmd q_obj_cmd-arg -> Object
7b13f2c2 49 gen=True success_response=True boxed=False oob=False preconfig=False
8a84767c 50command cmd-boxed Object -> None
7b13f2c2 51 gen=True success_response=True boxed=True oob=False preconfig=False
80d1f2e4
MA
52doc freeform
53 body=
54= Section
55
56== Subsection
57
58*strong* _with emphasis_
59@var {in braces}
60* List item one
61- Two, multiple
62lines
63
643. Three
65Still in list
66
67Not in list
68- Second list
69Note: still in list
70
71Note: not in list
721. Third list
73is numbered
74
75- another item
76
77| example
78| multiple lines
79
80Returns: the King
81Since: the first age
82Notes:
83
841. Lorem ipsum dolor sit amet
85
862. Ut enim ad minim veniam
87
88Duis aute irure dolor
89
90Example:
91
92-> in
93<- out
94Examples:
95- *verbatim*
96- {braces}
97doc symbol=Enum
98 body=
cfa438ff 99
80d1f2e4
MA
100 arg=one
101The _one_ {and only}
102 arg=two
103
fc3f0df1 104 section=None
80d1f2e4
MA
105@two is undocumented
106doc symbol=Base
107 body=
108
109 arg=base1
110the first member
111doc symbol=Variant1
112 body=
113A paragraph
114
115Another paragraph (but no @var: line)
116 arg=var1
117
118doc symbol=Variant2
119 body=
120
121doc symbol=Object
122 body=
123
124doc symbol=SugaredUnion
125 body=
126
127 arg=type
128
129doc freeform
130 body=
131== Another subsection
132doc symbol=cmd
133 body=
134
135 arg=arg1
136the first argument
137 arg=arg2
138the second
139argument
140 arg=arg3
141
142 section=Note
143@arg3 is undocumented
144 section=Returns
145@Object
146 section=TODO
147frobnicate
148 section=Notes
149- Lorem ipsum dolor sit amet
150- Ut enim ad minim veniam
151
152Duis aute irure dolor
153 section=Example
154-> in
155<- out
156 section=Examples
157- *verbatim*
158- {braces}
159 section=Since
1602.10
161doc symbol=cmd-boxed
162 body=
163If you're bored enough to read this, go see a video of boxed cats
164 section=Example
165-> in
166
167<- out
This page took 0.175088 seconds and 4 git commands to generate.