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
169
170
173
174
175
176
177
178
181
182
183
184
185
186
189
190
191
194
195
196
199
200
201
202
205
206
207
210
211
212
213
214
215
218
219
220
223
224
225
228
229
230
231
234
235
236
239
240
241
244
245
246
247
248
249
250
251
256 json[
"name"_L1] = name;
257 json[
"fullName"_L1] = fullName;
258 json[
"signature"_L1] = signature;
259 json[
"href"_L1] = href;
260 if (!brief.isEmpty())
261 json[
"brief"_L1] = brief;
263 if (
const auto t = nodeTypeToJson(nodeType))
264 json[
"nodeType"_L1] = *t;
265 json[
"status"_L1] = statusToJson(status);
266 json[
"access"_L1] = accessToJson(access);
267 if (!deprecatedSince.isEmpty())
268 json[
"deprecatedSince"_L1] = deprecatedSince;
269 if (!typeNoun.isEmpty())
270 json[
"typeNoun"_L1] = typeNoun;
271 if (!deprecatedSinceQualified.isEmpty())
272 json[
"deprecatedSinceQualified"_L1] = deprecatedSinceQualified;
274 json[
"overloadNumber"_L1] = overloadNumber;
275 json[
"isPrimaryOverload"_L1] = isPrimaryOverload;
277 if (!parameters.isEmpty()) {
279 for (
const auto &p : parameters)
280 arr.append(p.toJson());
281 json[
"parameters"_L1] = arr;
284 if (!enumValues.isEmpty()) {
286 for (
const auto &ev : enumValues)
287 arr.append(ev.toJson());
288 json[
"enumValues"_L1] = arr;
291 json[
"isStatic"_L1] = isStatic;
292 json[
"isConst"_L1] = isConst;
293 json[
"isVirtual"_L1] = isVirtual;
294 json[
"isSignal"_L1] = isSignal;
295 json[
"isSlot"_L1] = isSlot;
298 json[
"isAttached"_L1] =
true;
300 json[
"isDefault"_L1] =
true;
302 json[
"isReadOnly"_L1] =
true;
304 json[
"isRequired"_L1] =
true;
305 if (!dataType.isEmpty())
306 json[
"dataType"_L1] = dataType;
308 json[
"anchorId"_L1] = anchorId;
309 json[
"synopsis"_L1] = synopsis;
310 if (!signatureSpans.isEmpty()) {
312 for (
const auto &span : signatureSpans)
313 arr.append(span.toJson());
314 json[
"signatureSpans"_L1] = arr;
316 if (!since.isEmpty())
317 json[
"since"_L1] = since;
318 if (!threadSafety.isEmpty())
319 json[
"threadSafety"_L1] = threadSafety;
320 if (!comparisonCategory.isEmpty())
321 json[
"comparisonCategory"_L1] = comparisonCategory;
323 json[
"isNoexcept"_L1] =
true;
324 if (!noexceptNote.isEmpty())
325 json[
"noexceptNote"_L1] = noexceptNote;
327 if (!body.isEmpty()) {
329 for (
const auto &block : body)
330 arr.append(block.toJson());
331 json[
"body"_L1] = arr;
334 if (!alsoList.isEmpty()) {
336 for (
const auto &block : alsoList)
337 arr.append(block.toJson());
338 json[
"alsoList"_L1] = arr;
345
346
347
348
349
350
351
352
355
356
357
360
361
362
365
366
367
370
371
372
373
374
375
379 json[
"className"_L1] = className;
380 json[
"count"_L1] = count;
381 json[
"href"_L1] = href;
386
387
388
389
390
391
392
393
394
395
396
397
400
401
402
403
406
407
408
411
412
413
416
417
418
421
422
423
426
427
428
431
432
433
436
437
438
439
440
441
447 json[
"title"_L1] = title;
448 json[
"singular"_L1] = singular;
449 json[
"plural"_L1] = plural;
451 QJsonArray membersArray;
452 for (
const auto &m : members)
453 membersArray.append(m.toJson());
454 json[
"members"_L1] = membersArray;
456 if (!reimplementedMembers.isEmpty()) {
458 for (
const auto &m : reimplementedMembers)
459 arr.append(m.toJson());
460 json[
"reimplementedMembers"_L1] = arr;
463 if (!inheritedMembers.isEmpty()) {
465 for (
const auto &im : inheritedMembers)
466 arr.append(im.toJson());
467 json[
"inheritedMembers"_L1] = arr;
474
475
476
477
478
479
480
481
484
485
486
487
488
489
493 json[
"signature"_L1] = signature;
494 if (!signatureSpans.isEmpty()) {
496 for (
const auto &span : signatureSpans)
497 arr.append(span.toJson());
498 json[
"signatureSpans"_L1] = arr;
500 json[
"href"_L1] = href;
502 if (!hints.isEmpty()) {
504 for (
const auto &hint : hints)
506 json[
"hints"_L1] = arr;
510 json[
"isPropertyGroup"_L1] =
true;
512 if (!children.isEmpty()) {
514 for (
const auto &child : children)
515 arr.append(child.toJson());
516 json[
"children"_L1] = arr;
523
524
525
526
527
528
529
532
533
534
535
536
540 json[
"typeName"_L1] = typeName;
541 json[
"typeHref"_L1] = typeHref;
544 for (
const auto &entry : members)
545 arr.append(entry.toJson());
546 json[
"members"_L1] = arr;
552
553
554
555
556
557
558
559
562
563
564
565
566
567
568
572 json[
"typeName"_L1] = typeName;
573 json[
"typeHref"_L1] = typeHref;
574 json[
"isQmlType"_L1] = isQmlType;
576 if (!members.isEmpty()) {
578 for (
const auto &entry : members)
579 arr.append(entry.toJson());
580 json[
"members"_L1] = arr;
583 if (!memberGroups.isEmpty()) {
585 for (
const auto &group : memberGroups)
586 arr.append(group.toJson());
587 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 Te...