| { |
| "name": "test.encapsulatedstructs", |
| "lib_declarations": [ |
| { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "test.encapsulatedstructs", |
| "start_offset": 8, |
| "end_offset": 32 |
| } |
| ], |
| "using_declarations": [ |
| { |
| "library_name": "zx", |
| "referenced_at": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "zx", |
| "start_offset": 41, |
| "end_offset": 43 |
| } |
| } |
| ], |
| "dependencies": [ |
| { |
| "library_name": "zx", |
| "library_location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/overview.fidl", |
| "data": "@available(platform=\"fuchsia\", added=7)\nlibrary zx", |
| "start_offset": 164, |
| "end_offset": 214 |
| } |
| } |
| ], |
| "dependency_identifiers": [ |
| { |
| "identifier": "zx/CHANNEL_MAX_MSG_BYTES", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "CHANNEL_MAX_MSG_BYTES", |
| "start_offset": 1188, |
| "end_offset": 1209 |
| } |
| }, |
| { |
| "identifier": "zx/CHANNEL_MAX_MSG_HANDLES", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "CHANNEL_MAX_MSG_HANDLES", |
| "start_offset": 1232, |
| "end_offset": 1255 |
| } |
| }, |
| { |
| "identifier": "zx/DEFAULT_CHANNEL_RIGHTS", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/rights.fidl", |
| "data": "DEFAULT_CHANNEL_RIGHTS", |
| "start_offset": 1417, |
| "end_offset": 1439 |
| } |
| }, |
| { |
| "identifier": "zx/DEFAULT_EVENT_RIGHTS", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/rights.fidl", |
| "data": "DEFAULT_EVENT_RIGHTS", |
| "start_offset": 1560, |
| "end_offset": 1580 |
| } |
| }, |
| { |
| "identifier": "zx/IOB_MAX_REGIONS", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "IOB_MAX_REGIONS", |
| "start_offset": 1275, |
| "end_offset": 1290 |
| } |
| }, |
| { |
| "identifier": "zx/MAX_CPUS", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "MAX_CPUS", |
| "start_offset": 1342, |
| "end_offset": 1350 |
| } |
| }, |
| { |
| "identifier": "zx/MAX_NAME_LEN", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "MAX_NAME_LEN", |
| "start_offset": 1310, |
| "end_offset": 1322 |
| } |
| }, |
| { |
| "identifier": "zx/RIGHTS_BASIC", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/rights.fidl", |
| "data": "RIGHTS_BASIC", |
| "start_offset": 1126, |
| "end_offset": 1138 |
| } |
| }, |
| { |
| "identifier": "zx/RIGHTS_IO", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/rights.fidl", |
| "data": "RIGHTS_IO", |
| "start_offset": 1221, |
| "end_offset": 1230 |
| } |
| }, |
| { |
| "identifier": "zx/RIGHTS_POLICY", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/rights.fidl", |
| "data": "RIGHTS_POLICY", |
| "start_offset": 1348, |
| "end_offset": 1361 |
| } |
| }, |
| { |
| "identifier": "zx/RIGHTS_PROPERTY", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/rights.fidl", |
| "data": "RIGHTS_PROPERTY", |
| "start_offset": 1274, |
| "end_offset": 1289 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "ObjType", |
| "start_offset": 1371, |
| "end_offset": 1378 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.NONE", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "NONE", |
| "start_offset": 1408, |
| "end_offset": 1412 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.PROCESS", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "PROCESS", |
| "start_offset": 1422, |
| "end_offset": 1429 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.THREAD", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "THREAD", |
| "start_offset": 1439, |
| "end_offset": 1445 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.VMO", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "VMO", |
| "start_offset": 1455, |
| "end_offset": 1458 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.CHANNEL", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "CHANNEL", |
| "start_offset": 1468, |
| "end_offset": 1475 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.EVENT", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "EVENT", |
| "start_offset": 1485, |
| "end_offset": 1490 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.PORT", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "PORT", |
| "start_offset": 1500, |
| "end_offset": 1504 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.INTERRUPT", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "INTERRUPT", |
| "start_offset": 1514, |
| "end_offset": 1523 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.PCI_DEVICE", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "PCI_DEVICE", |
| "start_offset": 1533, |
| "end_offset": 1543 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.LOG", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "LOG", |
| "start_offset": 1554, |
| "end_offset": 1557 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.SOCKET", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "SOCKET", |
| "start_offset": 1568, |
| "end_offset": 1574 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.RESOURCE", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "RESOURCE", |
| "start_offset": 1585, |
| "end_offset": 1593 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.EVENTPAIR", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "EVENTPAIR", |
| "start_offset": 1604, |
| "end_offset": 1613 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.JOB", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "JOB", |
| "start_offset": 1624, |
| "end_offset": 1627 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.VMAR", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "VMAR", |
| "start_offset": 1638, |
| "end_offset": 1642 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.FIFO", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "FIFO", |
| "start_offset": 1653, |
| "end_offset": 1657 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.GUEST", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "GUEST", |
| "start_offset": 1668, |
| "end_offset": 1673 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.VCPU", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "VCPU", |
| "start_offset": 1684, |
| "end_offset": 1688 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.TIMER", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "TIMER", |
| "start_offset": 1699, |
| "end_offset": 1704 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.IOMMU", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "IOMMU", |
| "start_offset": 1715, |
| "end_offset": 1720 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.BTI", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "BTI", |
| "start_offset": 1731, |
| "end_offset": 1734 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.PROFILE", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "PROFILE", |
| "start_offset": 1745, |
| "end_offset": 1752 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.PMT", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "PMT", |
| "start_offset": 1763, |
| "end_offset": 1766 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.SUSPEND_TOKEN", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "SUSPEND_TOKEN", |
| "start_offset": 1777, |
| "end_offset": 1790 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.PAGER", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "PAGER", |
| "start_offset": 1801, |
| "end_offset": 1806 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.EXCEPTION", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "EXCEPTION", |
| "start_offset": 1817, |
| "end_offset": 1826 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.CLOCK", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "CLOCK", |
| "start_offset": 1837, |
| "end_offset": 1842 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.STREAM", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "STREAM", |
| "start_offset": 1853, |
| "end_offset": 1859 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.MSI", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "MSI", |
| "start_offset": 1870, |
| "end_offset": 1873 |
| } |
| }, |
| { |
| "identifier": "zx/ObjType.IOB", |
| "location": { |
| "is_virtual": false, |
| "file": "../../zircon/vdso/zx_common.fidl", |
| "data": "IOB", |
| "start_offset": 1884, |
| "end_offset": 1887 |
| } |
| } |
| ], |
| "consts": [], |
| "enums": [], |
| "unions": [], |
| "tables": [], |
| "structs": [ |
| { |
| "is_anonymous": false, |
| "identifier": "test.encapsulatedstructs/ArrayInt16Int8", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "ArrayInt16Int8", |
| "start_offset": 214, |
| "end_offset": 228 |
| }, |
| "members": [ |
| { |
| "name": "arr", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "arr", |
| "start_offset": 244, |
| "end_offset": 247 |
| }, |
| "type": { |
| "kind": "array" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.encapsulatedstructs/Int16Int8", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "Int16Int8", |
| "start_offset": 133, |
| "end_offset": 142 |
| }, |
| "members": [ |
| { |
| "name": "a", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "a", |
| "start_offset": 158, |
| "end_offset": 159 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| }, |
| { |
| "name": "b", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "b", |
| "start_offset": 171, |
| "end_offset": 172 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.encapsulatedstructs/Int8Int32", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "Int8Int32", |
| "start_offset": 51, |
| "end_offset": 60 |
| }, |
| "members": [ |
| { |
| "name": "a", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "a", |
| "start_offset": 76, |
| "end_offset": 77 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| }, |
| { |
| "name": "b", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "b", |
| "start_offset": 115, |
| "end_offset": 116 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.encapsulatedstructs/NonInlineStructTestStruct", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "NonInlineStructTestStruct", |
| "start_offset": 713, |
| "end_offset": 738 |
| }, |
| "members": [ |
| { |
| "name": "element", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "element", |
| "start_offset": 763, |
| "end_offset": 770 |
| }, |
| "type": { |
| "kind": "identifier" |
| } |
| }, |
| { |
| "name": "h", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "h", |
| "start_offset": 811, |
| "end_offset": 812 |
| }, |
| "type": { |
| "kind": "handle" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.encapsulatedstructs/StructPaddingTestStruct", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "StructPaddingTestStruct", |
| "start_offset": 332, |
| "end_offset": 355 |
| }, |
| "members": [ |
| { |
| "name": "trailing", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "trailing", |
| "start_offset": 371, |
| "end_offset": 379 |
| }, |
| "type": { |
| "kind": "identifier", |
| "is_anonymous": false, |
| "type_identifier": "test.encapsulatedstructs/Int16Int8", |
| "type_referenced_at": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "Int16Int8", |
| "start_offset": 380, |
| "end_offset": 389 |
| } |
| } |
| }, |
| { |
| "name": "inner", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "inner", |
| "start_offset": 568, |
| "end_offset": 573 |
| }, |
| "type": { |
| "kind": "identifier", |
| "is_anonymous": false, |
| "type_identifier": "test.encapsulatedstructs/Int8Int32", |
| "type_referenced_at": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "Int8Int32", |
| "start_offset": 574, |
| "end_offset": 583 |
| } |
| } |
| }, |
| { |
| "name": "array", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "array", |
| "start_offset": 589, |
| "end_offset": 594 |
| }, |
| "type": { |
| "kind": "identifier", |
| "is_anonymous": false, |
| "type_identifier": "test.encapsulatedstructs/ArrayInt16Int8", |
| "type_referenced_at": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "ArrayInt16Int8", |
| "start_offset": 595, |
| "end_offset": 609 |
| } |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.encapsulatedstructs/TopLevelStruct", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "TopLevelStruct", |
| "start_offset": 869, |
| "end_offset": 883 |
| }, |
| "members": [ |
| { |
| "name": "a", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "a", |
| "start_offset": 908, |
| "end_offset": 909 |
| }, |
| "type": { |
| "kind": "identifier", |
| "is_anonymous": false, |
| "type_identifier": "test.encapsulatedstructs/StructPaddingTestStruct", |
| "type_referenced_at": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "StructPaddingTestStruct", |
| "start_offset": 910, |
| "end_offset": 933 |
| } |
| } |
| }, |
| { |
| "name": "b", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "b", |
| "start_offset": 939, |
| "end_offset": 940 |
| }, |
| "type": { |
| "kind": "identifier", |
| "is_anonymous": false, |
| "type_identifier": "test.encapsulatedstructs/NonInlineStructTestStruct", |
| "type_referenced_at": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/encapsulated_structs.test.fidl", |
| "data": "NonInlineStructTestStruct", |
| "start_offset": 941, |
| "end_offset": 966 |
| } |
| } |
| } |
| ] |
| } |
| ], |
| "protocols": [] |
| } |