| { |
| "name": "test.nullable", |
| "lib_declarations": [ |
| { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "test.nullable", |
| "start_offset": 8, |
| "end_offset": 21 |
| } |
| ], |
| "using_declarations": [ |
| { |
| "library_name": "zx", |
| "referenced_at": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "zx", |
| "start_offset": 30, |
| "end_offset": 32 |
| } |
| } |
| ], |
| "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": [ |
| { |
| "is_anonymous": false, |
| "identifier": "test.nullable/SimpleUnion", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "SimpleUnion", |
| "start_offset": 743, |
| "end_offset": 754 |
| }, |
| "members": [ |
| { |
| "is_reserved": false, |
| "name": "a", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "a", |
| "start_offset": 779, |
| "end_offset": 780 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| }, |
| { |
| "is_reserved": false, |
| "name": "b", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "b", |
| "start_offset": 795, |
| "end_offset": 796 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| } |
| ] |
| } |
| ], |
| "tables": [], |
| "structs": [ |
| { |
| "is_anonymous": false, |
| "identifier": "test.nullable/Int32Wrapper", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "Int32Wrapper", |
| "start_offset": 623, |
| "end_offset": 635 |
| }, |
| "members": [ |
| { |
| "name": "val", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "val", |
| "start_offset": 651, |
| "end_offset": 654 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": true, |
| "identifier": "test.nullable/SimpleProtocolAddRequest", |
| "members": [ |
| { |
| "name": "a", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "a", |
| "start_offset": 336, |
| "end_offset": 337 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| }, |
| { |
| "name": "b", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "b", |
| "start_offset": 353, |
| "end_offset": 354 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": true, |
| "identifier": "test.nullable/SimpleProtocolAddResponse", |
| "members": [ |
| { |
| "name": "sum", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "sum", |
| "start_offset": 390, |
| "end_offset": 393 |
| }, |
| "type": { |
| "kind": "primitive" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.nullable/StructWithNullableHandle", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "StructWithNullableHandle", |
| "start_offset": 187, |
| "end_offset": 211 |
| }, |
| "members": [ |
| { |
| "name": "val", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "val", |
| "start_offset": 236, |
| "end_offset": 239 |
| }, |
| "type": { |
| "kind": "handle" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.nullable/StructWithNullableProtocol", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "StructWithNullableProtocol", |
| "start_offset": 418, |
| "end_offset": 444 |
| }, |
| "members": [ |
| { |
| "name": "val", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "val", |
| "start_offset": 469, |
| "end_offset": 472 |
| }, |
| "type": { |
| "kind": "identifier" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.nullable/StructWithNullableRequest", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "StructWithNullableRequest", |
| "start_offset": 521, |
| "end_offset": 546 |
| }, |
| "members": [ |
| { |
| "name": "val", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "val", |
| "start_offset": 571, |
| "end_offset": 574 |
| }, |
| "type": { |
| "kind": "request" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.nullable/StructWithNullableString", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "StructWithNullableString", |
| "start_offset": 40, |
| "end_offset": 64 |
| }, |
| "members": [ |
| { |
| "name": "val", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "val", |
| "start_offset": 80, |
| "end_offset": 83 |
| }, |
| "type": { |
| "kind": "string" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.nullable/StructWithNullableStruct", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "StructWithNullableStruct", |
| "start_offset": 671, |
| "end_offset": 695 |
| }, |
| "members": [ |
| { |
| "name": "val", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "val", |
| "start_offset": 711, |
| "end_offset": 714 |
| }, |
| "type": { |
| "kind": "identifier" |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.nullable/StructWithNullableUnion", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "StructWithNullableUnion", |
| "start_offset": 815, |
| "end_offset": 838 |
| }, |
| "members": [ |
| { |
| "name": "val", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "val", |
| "start_offset": 854, |
| "end_offset": 857 |
| }, |
| "type": { |
| "kind": "identifier", |
| "is_anonymous": false, |
| "type_identifier": "test.nullable/SimpleUnion", |
| "type_referenced_at": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "SimpleUnion", |
| "start_offset": 858, |
| "end_offset": 869 |
| } |
| } |
| } |
| ] |
| }, |
| { |
| "is_anonymous": false, |
| "identifier": "test.nullable/StructWithNullableVector", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "StructWithNullableVector", |
| "start_offset": 110, |
| "end_offset": 134 |
| }, |
| "members": [ |
| { |
| "name": "val", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "val", |
| "start_offset": 150, |
| "end_offset": 153 |
| }, |
| "type": { |
| "kind": "vector" |
| } |
| } |
| ] |
| } |
| ], |
| "protocols": [ |
| { |
| "identifier": "test.nullable/SimpleProtocol", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "SimpleProtocol", |
| "start_offset": 287, |
| "end_offset": 301 |
| }, |
| "methods": [ |
| { |
| "identifier": "Add", |
| "location": { |
| "is_virtual": false, |
| "file": "../../tools/fidl/fidlc/testdata/nullable.test.fidl", |
| "data": "Add", |
| "start_offset": 315, |
| "end_offset": 318 |
| }, |
| "request_type": { |
| "kind": "identifier", |
| "is_anonymous": true |
| }, |
| "response_type": { |
| "kind": "identifier", |
| "is_anonymous": true |
| } |
| } |
| ], |
| "composed_protocols": [] |
| } |
| ] |
| } |