| 1 |
enum Foo { |
| 2 |
A, |
| 3 |
B = 20 |
| 4 |
}; |
| 5 |
|
| 6 |
/* |
| 7 |
OUTPUT: |
| 8 |
{ |
| 9 |
"includes": [], |
| 10 |
"skipped_ranges": [], |
| 11 |
"usr2func": [], |
| 12 |
"usr2type": [{ |
| 13 |
"usr": 16985894625255407295, |
| 14 |
"detailed_name": "enum Foo {}", |
| 15 |
"qual_name_offset": 5, |
| 16 |
"short_name": "Foo", |
| 17 |
"spell": "1:6-1:9|1:1-4:2|2|-1", |
| 18 |
"bases": [], |
| 19 |
"funcs": [], |
| 20 |
"types": [], |
| 21 |
"vars": [], |
| 22 |
"alias_of": 0, |
| 23 |
"kind": 10, |
| 24 |
"parent_kind": 1, |
| 25 |
"declarations": [], |
| 26 |
"derived": [], |
| 27 |
"instances": [], |
| 28 |
"uses": [] |
| 29 |
}], |
| 30 |
"usr2var": [{ |
| 31 |
"usr": 439339022761937396, |
| 32 |
"detailed_name": "A", |
| 33 |
"qual_name_offset": 0, |
| 34 |
"short_name": "A", |
| 35 |
"hover": "A = 0", |
| 36 |
"spell": "2:3-2:4|2:3-2:4|1026|-1", |
| 37 |
"type": 16985894625255407295, |
| 38 |
"kind": 22, |
| 39 |
"parent_kind": 1, |
| 40 |
"storage": 0, |
| 41 |
"declarations": [], |
| 42 |
"uses": [] |
| 43 |
}, { |
| 44 |
"usr": 15962370213938840720, |
| 45 |
"detailed_name": "B = 20", |
| 46 |
"qual_name_offset": 0, |
| 47 |
"short_name": "B", |
| 48 |
"spell": "3:3-3:4|3:3-3:9|1026|-1", |
| 49 |
"type": 16985894625255407295, |
| 50 |
"kind": 22, |
| 51 |
"parent_kind": 1, |
| 52 |
"storage": 0, |
| 53 |
"declarations": [], |
| 54 |
"uses": [] |
| 55 |
}] |
| 56 |
} |
| 57 |
*/ |