12using namespace Qt::Literals::StringLiterals;
17
18
19
20
21
22
23
24
25
26
29
30
31
34
35
36
39
40
41
44
45
46
47
48
52 json[
"type"_L1] = type;
53 json[
"name"_L1] = name;
54 if (!defaultValue.isEmpty())
55 json[
"defaultValue"_L1] = defaultValue;
60
61
62
63
64
65
66
67
68
69
72
73
74
77
78
79
80
83
84
85
88
89
90
91
92
96 json[
"name"_L1] = name;
98 json[
"value"_L1] = value;
100 json[
"since"_L1] = since;
105
106
107
108
109
110
111
112
113
114
115
116
117
120
121
122
125
126
127
130
131
132
133
134
135
138
139
140
143
144
145
146
149
150
151
152
155
156
157
160
161
162
163
166
167
168
171
172
173
176
177
178
179
182
183
184
187
188
189
190
191
192
195
196
197
200
201
202
205
206
207
208
211
212
213
216
217
218
221
222
223
224
225
226
227
228
233 json[
"name"_L1] = name;
234 json[
"fullName"_L1] = fullName;
235 json[
"signature"_L1] = signature;
236 json[
"href"_L1] = href;
237 if (!brief.isEmpty())
238 json[
"brief"_L1] = brief;
240 if (
const auto t = nodeTypeToJson(nodeType))
241 json[
"nodeType"_L1] = *t;
242 json[
"status"_L1] = statusToJson(status);
243 json[
"access"_L1] = accessToJson(access);
245 json[
"overloadNumber"_L1] = overloadNumber;
246 json[
"isPrimaryOverload"_L1] = isPrimaryOverload;
248 if (!parameters.isEmpty()) {
250 for (
const auto &p : parameters)
251 arr.append(p.toJson());
252 json[
"parameters"_L1] = arr;
255 if (!enumValues.isEmpty()) {
257 for (
const auto &ev : enumValues)
258 arr.append(ev.toJson());
259 json[
"enumValues"_L1] = arr;
262 json[
"isStatic"_L1] = isStatic;
263 json[
"isConst"_L1] = isConst;
264 json[
"isVirtual"_L1] = isVirtual;
265 json[
"isSignal"_L1] = isSignal;
266 json[
"isSlot"_L1] = isSlot;
269 json[
"isAttached"_L1] =
true;
271 json[
"isDefault"_L1] =
true;
273 json[
"isReadOnly"_L1] =
true;
275 json[
"isRequired"_L1] =
true;
276 if (!dataType.isEmpty())
277 json[
"dataType"_L1] = dataType;
279 json[
"anchorId"_L1] = anchorId;
280 json[
"synopsis"_L1] = synopsis;
281 if (!signatureSpans.isEmpty()) {
283 for (
const auto &span : signatureSpans)
284 arr.append(span.toJson());
285 json[
"signatureSpans"_L1] = arr;
287 if (!since.isEmpty())
288 json[
"since"_L1] = since;
289 if (!threadSafety.isEmpty())
290 json[
"threadSafety"_L1] = threadSafety;
291 if (!comparisonCategory.isEmpty())
292 json[
"comparisonCategory"_L1] = comparisonCategory;
294 json[
"isNoexcept"_L1] =
true;
295 if (!noexceptNote.isEmpty())
296 json[
"noexceptNote"_L1] = noexceptNote;
298 if (!body.isEmpty()) {
300 for (
const auto &block : body)
301 arr.append(block.toJson());
302 json[
"body"_L1] = arr;
305 if (!alsoList.isEmpty()) {
307 for (
const auto &block : alsoList)
308 arr.append(block.toJson());
309 json[
"alsoList"_L1] = arr;
316
317
318
319
320
321
322
323
326
327
328
331
332
333
336
337
338
341
342
343
344
345
346
350 json[
"className"_L1] = className;
351 json[
"count"_L1] = count;
352 json[
"href"_L1] = href;
357
358
359
360
361
362
363
364
365
366
367
368
371
372
373
374
377
378
379
382
383
384
387
388
389
392
393
394
397
398
399
402
403
404
407
408
409
410
411
412
418 json[
"title"_L1] = title;
419 json[
"singular"_L1] = singular;
420 json[
"plural"_L1] = plural;
422 QJsonArray membersArray;
423 for (
const auto &m : members)
424 membersArray.append(m.toJson());
425 json[
"members"_L1] = membersArray;
427 if (!reimplementedMembers.isEmpty()) {
429 for (
const auto &m : reimplementedMembers)
430 arr.append(m.toJson());
431 json[
"reimplementedMembers"_L1] = arr;
434 if (!inheritedMembers.isEmpty()) {
436 for (
const auto &im : inheritedMembers)
437 arr.append(im.toJson());
438 json[
"inheritedMembers"_L1] = arr;
445
446
447
448
449
450
451
452
455
456
457
458
459
460
464 json[
"signature"_L1] = signature;
465 if (!signatureSpans.isEmpty()) {
467 for (
const auto &span : signatureSpans)
468 arr.append(span.toJson());
469 json[
"signatureSpans"_L1] = arr;
471 json[
"href"_L1] = href;
473 if (!hints.isEmpty()) {
475 for (
const auto &hint : hints)
477 json[
"hints"_L1] = arr;
481 json[
"isPropertyGroup"_L1] =
true;
483 if (!children.isEmpty()) {
485 for (
const auto &child : children)
486 arr.append(child.toJson());
487 json[
"children"_L1] = arr;
494
495
496
497
498
499
500
503
504
505
506
507
511 json[
"typeName"_L1] = typeName;
512 json[
"typeHref"_L1] = typeHref;
515 for (
const auto &entry : members)
516 arr.append(entry.toJson());
517 json[
"members"_L1] = arr;
523
524
525
526
527
528
529
530
533
534
535
536
537
538
539
543 json[
"typeName"_L1] = typeName;
544 json[
"typeHref"_L1] = typeHref;
545 json[
"isQmlType"_L1] = isQmlType;
547 if (!members.isEmpty()) {
549 for (
const auto &entry : members)
550 arr.append(entry.toJson());
551 json[
"members"_L1] = arr;
554 if (!memberGroups.isEmpty()) {
556 for (
const auto &group : memberGroups)
557 arr.append(group.toJson());
558 json[
"memberGroups"_L1] = arr;
Combined button and popup list for selecting options.
A single entry in an all-members listing page.
QJsonObject toJson() const
Converts the entry to a QJsonObject for template rendering.
Intermediate representation of the all-members listing page.
QJsonObject toJson() const
Converts the all-members IR to a QJsonObject for template rendering.
Intermediate representation of a single enum value.
QJsonObject toJson() const
\variable IR::EnumValueIR::name Enumerator name.
Summary of members inherited from a single base class.
QJsonObject toJson() const
\variable IR::InheritedMembersIR::className Fully qualified name of the base class.
Members grouped by originating QML type in an all-members listing.
QJsonObject toJson() const
Converts the member group to a QJsonObject for template rendering.
Intermediate representation of a single documentable member.
QJsonObject toJson() const
\variable IR::MemberIR::name Unqualified member name.
Intermediate representation of a function parameter.
QJsonObject toJson() const
\variable IR::ParameterIR::type Parameter type (such as "const QString &").
Intermediate representation of a member summary section.
QJsonObject toJson() const
\variable IR::SectionIR::id Stable ASCII identifier for anchor links, generated from the title via Ut...