2017-02-20 07:06:38 +00:00
|
|
|
class Root {};
|
|
|
|
class MiddleA : public Root {};
|
|
|
|
class MiddleB : public Root {};
|
|
|
|
class Derived : public MiddleA, public MiddleB {};
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"types": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@S@Root",
|
|
|
|
"short_name": "Root",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Root",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "1:7-1:11",
|
|
|
|
"definition_extent": "1:1-1:14",
|
2017-02-20 07:06:38 +00:00
|
|
|
"derived": [1, 2],
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["*1:7-1:11", "*2:24-2:28", "*3:24-3:28"]
|
2017-02-20 07:06:38 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@S@MiddleA",
|
|
|
|
"short_name": "MiddleA",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "MiddleA",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "2:7-2:14",
|
|
|
|
"definition_extent": "2:1-2:31",
|
2017-02-20 07:06:38 +00:00
|
|
|
"parents": [0],
|
|
|
|
"derived": [3],
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["*2:7-2:14", "*4:24-4:31"]
|
2017-02-20 07:06:38 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
|
|
|
"usr": "c:@S@MiddleB",
|
|
|
|
"short_name": "MiddleB",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "MiddleB",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "3:7-3:14",
|
|
|
|
"definition_extent": "3:1-3:31",
|
2017-02-20 07:06:38 +00:00
|
|
|
"parents": [0],
|
|
|
|
"derived": [3],
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["*3:7-3:14", "*4:40-4:47"]
|
2017-02-20 07:06:38 +00:00
|
|
|
}, {
|
|
|
|
"id": 3,
|
|
|
|
"usr": "c:@S@Derived",
|
|
|
|
"short_name": "Derived",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Derived",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "4:7-4:14",
|
|
|
|
"definition_extent": "4:1-4:50",
|
2017-02-20 07:06:38 +00:00
|
|
|
"parents": [1, 2],
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["*4:7-4:14"]
|
2017-03-08 00:21:23 +00:00
|
|
|
}]
|
2017-02-20 07:06:38 +00:00
|
|
|
}
|
2017-03-08 00:21:23 +00:00
|
|
|
*/
|