blob: ed8f2bdb6b922a1b9731992af04fb9789e8116f9 [file] [log] [blame]
{
"version": "0.0.1",
"name": "fidl.test.handles",
"library_dependencies": [
{
"name": "zx",
"declarations": {
"zx/rights": {
"kind": "bits"
},
"zx/RIGHTS_BASIC": {
"kind": "const"
},
"zx/RIGHTS_IO": {
"kind": "const"
},
"zx/RIGHTS_PROPERTY": {
"kind": "const"
},
"zx/RIGHTS_POLICY": {
"kind": "const"
},
"zx/DEFAULT_CHANNEL_RIGHTS": {
"kind": "const"
},
"zx/DEFAULT_EVENT_RIGHTS": {
"kind": "const"
},
"zx/CHANNEL_MAX_MSG_BYTES": {
"kind": "const"
},
"zx/CHANNEL_MAX_MSG_HANDLES": {
"kind": "const"
},
"zx/MAX_NAME_LEN": {
"kind": "const"
},
"zx/MAX_CPUS": {
"kind": "const"
},
"zx/obj_type": {
"kind": "enum"
},
"zx/handle": {
"kind": "experimental_resource"
},
"zx/status": {
"kind": "type_alias"
},
"zx/time": {
"kind": "type_alias"
},
"zx/duration": {
"kind": "type_alias"
},
"zx/ticks": {
"kind": "type_alias"
},
"zx/koid": {
"kind": "type_alias"
},
"zx/vaddr": {
"kind": "type_alias"
},
"zx/paddr": {
"kind": "type_alias"
},
"zx/paddr32": {
"kind": "type_alias"
},
"zx/gpaddr": {
"kind": "type_alias"
},
"zx/off": {
"kind": "type_alias"
},
"zx/procarg": {
"kind": "type_alias"
},
"zx/signals": {
"kind": "type_alias"
}
}
}
],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [
{
"name": "fidl.test.handles/obj_type",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 8,
"column": 6,
"length": 8
},
"type": "uint32",
"members": [
{
"name": "NONE",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 9,
"column": 5,
"length": 4
},
"value": {
"kind": "literal",
"value": "0",
"expression": "0",
"literal": {
"kind": "numeric",
"value": "0",
"expression": "0"
}
}
},
{
"name": "PROCESS",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 10,
"column": 5,
"length": 7
},
"value": {
"kind": "literal",
"value": "1",
"expression": "1",
"literal": {
"kind": "numeric",
"value": "1",
"expression": "1"
}
}
},
{
"name": "THREAD",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 11,
"column": 5,
"length": 6
},
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
}
},
{
"name": "VMO",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 12,
"column": 5,
"length": 3
},
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
}
},
{
"name": "CHANNEL",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 13,
"column": 5,
"length": 7
},
"value": {
"kind": "literal",
"value": "4",
"expression": "4",
"literal": {
"kind": "numeric",
"value": "4",
"expression": "4"
}
}
},
{
"name": "EVENT",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 14,
"column": 5,
"length": 5
},
"value": {
"kind": "literal",
"value": "5",
"expression": "5",
"literal": {
"kind": "numeric",
"value": "5",
"expression": "5"
}
}
},
{
"name": "PORT",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 15,
"column": 5,
"length": 4
},
"value": {
"kind": "literal",
"value": "6",
"expression": "6",
"literal": {
"kind": "numeric",
"value": "6",
"expression": "6"
}
}
},
{
"name": "INTERRUPT",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 16,
"column": 5,
"length": 9
},
"value": {
"kind": "literal",
"value": "9",
"expression": "9",
"literal": {
"kind": "numeric",
"value": "9",
"expression": "9"
}
}
},
{
"name": "PCI_DEVICE",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 17,
"column": 5,
"length": 10
},
"value": {
"kind": "literal",
"value": "11",
"expression": "11",
"literal": {
"kind": "numeric",
"value": "11",
"expression": "11"
}
}
},
{
"name": "LOG",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 18,
"column": 5,
"length": 3
},
"value": {
"kind": "literal",
"value": "12",
"expression": "12",
"literal": {
"kind": "numeric",
"value": "12",
"expression": "12"
}
}
},
{
"name": "SOCKET",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 19,
"column": 5,
"length": 6
},
"value": {
"kind": "literal",
"value": "14",
"expression": "14",
"literal": {
"kind": "numeric",
"value": "14",
"expression": "14"
}
}
},
{
"name": "RESOURCE",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 20,
"column": 5,
"length": 8
},
"value": {
"kind": "literal",
"value": "15",
"expression": "15",
"literal": {
"kind": "numeric",
"value": "15",
"expression": "15"
}
}
},
{
"name": "EVENTPAIR",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 21,
"column": 5,
"length": 9
},
"value": {
"kind": "literal",
"value": "16",
"expression": "16",
"literal": {
"kind": "numeric",
"value": "16",
"expression": "16"
}
}
},
{
"name": "JOB",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 22,
"column": 5,
"length": 3
},
"value": {
"kind": "literal",
"value": "17",
"expression": "17",
"literal": {
"kind": "numeric",
"value": "17",
"expression": "17"
}
}
},
{
"name": "VMAR",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 23,
"column": 5,
"length": 4
},
"value": {
"kind": "literal",
"value": "18",
"expression": "18",
"literal": {
"kind": "numeric",
"value": "18",
"expression": "18"
}
}
},
{
"name": "FIFO",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 24,
"column": 5,
"length": 4
},
"value": {
"kind": "literal",
"value": "19",
"expression": "19",
"literal": {
"kind": "numeric",
"value": "19",
"expression": "19"
}
}
},
{
"name": "GUEST",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 25,
"column": 5,
"length": 5
},
"value": {
"kind": "literal",
"value": "20",
"expression": "20",
"literal": {
"kind": "numeric",
"value": "20",
"expression": "20"
}
}
},
{
"name": "VCPU",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 26,
"column": 5,
"length": 4
},
"value": {
"kind": "literal",
"value": "21",
"expression": "21",
"literal": {
"kind": "numeric",
"value": "21",
"expression": "21"
}
}
},
{
"name": "TIMER",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 27,
"column": 5,
"length": 5
},
"value": {
"kind": "literal",
"value": "22",
"expression": "22",
"literal": {
"kind": "numeric",
"value": "22",
"expression": "22"
}
}
},
{
"name": "IOMMU",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 28,
"column": 5,
"length": 5
},
"value": {
"kind": "literal",
"value": "23",
"expression": "23",
"literal": {
"kind": "numeric",
"value": "23",
"expression": "23"
}
}
},
{
"name": "BTI",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 29,
"column": 5,
"length": 3
},
"value": {
"kind": "literal",
"value": "24",
"expression": "24",
"literal": {
"kind": "numeric",
"value": "24",
"expression": "24"
}
}
},
{
"name": "PROFILE",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 30,
"column": 5,
"length": 7
},
"value": {
"kind": "literal",
"value": "25",
"expression": "25",
"literal": {
"kind": "numeric",
"value": "25",
"expression": "25"
}
}
},
{
"name": "PMT",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 31,
"column": 5,
"length": 3
},
"value": {
"kind": "literal",
"value": "26",
"expression": "26",
"literal": {
"kind": "numeric",
"value": "26",
"expression": "26"
}
}
},
{
"name": "SUSPEND_TOKEN",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 32,
"column": 5,
"length": 13
},
"value": {
"kind": "literal",
"value": "27",
"expression": "27",
"literal": {
"kind": "numeric",
"value": "27",
"expression": "27"
}
}
},
{
"name": "PAGER",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 33,
"column": 5,
"length": 5
},
"value": {
"kind": "literal",
"value": "28",
"expression": "28",
"literal": {
"kind": "numeric",
"value": "28",
"expression": "28"
}
}
},
{
"name": "EXCEPTION",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 34,
"column": 5,
"length": 9
},
"value": {
"kind": "literal",
"value": "29",
"expression": "29",
"literal": {
"kind": "numeric",
"value": "29",
"expression": "29"
}
}
},
{
"name": "CLOCK",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 35,
"column": 5,
"length": 5
},
"value": {
"kind": "literal",
"value": "30",
"expression": "30",
"literal": {
"kind": "numeric",
"value": "30",
"expression": "30"
}
}
},
{
"name": "STREAM",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 36,
"column": 5,
"length": 6
},
"value": {
"kind": "literal",
"value": "31",
"expression": "31",
"literal": {
"kind": "numeric",
"value": "31",
"expression": "31"
}
}
},
{
"name": "MSI_ALLOCATION",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 37,
"column": 5,
"length": 14
},
"value": {
"kind": "literal",
"value": "32",
"expression": "32",
"literal": {
"kind": "numeric",
"value": "32",
"expression": "32"
}
}
},
{
"name": "MSI_INTERRUPT",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 38,
"column": 5,
"length": 13
},
"value": {
"kind": "literal",
"value": "33",
"expression": "33",
"literal": {
"kind": "numeric",
"value": "33",
"expression": "33"
}
}
}
],
"strict": true
}
],
"experimental_resource_declarations": [
{
"name": "fidl.test.handles/handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 41,
"column": 21,
"length": 6
},
"type": {
"kind": "primitive",
"subtype": "uint32"
},
"properties": [
{
"name": "subtype",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 43,
"column": 18,
"length": 7
},
"type": {
"kind": "identifier",
"identifier": "fidl.test.handles/obj_type",
"nullable": false
}
},
{
"name": "rights",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 44,
"column": 19,
"length": 6
},
"type": {
"kind": "identifier",
"identifier": "zx/rights",
"nullable": false
}
}
]
}
],
"interface_declarations": [
{
"name": "fidl.test.handles/SomeProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 48,
"column": 10,
"length": 12
},
"methods": []
}
],
"service_declarations": [],
"struct_declarations": [
{
"name": "fidl.test.handles/Handles",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 55,
"column": 17,
"length": 7
},
"anonymous": false,
"members": [
{
"type": {
"kind": "handle",
"obj_type": 0,
"subtype": "handle",
"rights": 2147483648,
"nullable": false
},
"name": "plain_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 56,
"column": 12,
"length": 12
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 24,
"subtype": "bti",
"rights": 2147483648,
"nullable": false
},
"name": "bti_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 58,
"column": 16,
"length": 10
},
"field_shape_v1": {
"offset": 4,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 4,
"subtype": "channel",
"rights": 2147483648,
"nullable": false
},
"name": "channel_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 59,
"column": 20,
"length": 14
},
"field_shape_v1": {
"offset": 8,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 30,
"subtype": "clock",
"rights": 2147483648,
"nullable": false
},
"name": "clock_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 60,
"column": 18,
"length": 12
},
"field_shape_v1": {
"offset": 12,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 12,
"subtype": "debuglog",
"rights": 2147483648,
"nullable": false
},
"name": "debuglog_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 61,
"column": 16,
"length": 15
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 5,
"subtype": "event",
"rights": 2147483648,
"nullable": false
},
"name": "event_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 62,
"column": 18,
"length": 12
},
"field_shape_v1": {
"offset": 20,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 16,
"subtype": "eventpair",
"rights": 2147483648,
"nullable": false
},
"name": "eventpair_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 63,
"column": 22,
"length": 16
},
"field_shape_v1": {
"offset": 24,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 29,
"subtype": "exception",
"rights": 2147483648,
"nullable": false
},
"name": "exception_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 64,
"column": 22,
"length": 16
},
"field_shape_v1": {
"offset": 28,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 19,
"subtype": "fifo",
"rights": 2147483648,
"nullable": false
},
"name": "fifo_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 65,
"column": 17,
"length": 11
},
"field_shape_v1": {
"offset": 32,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 20,
"subtype": "guest",
"rights": 2147483648,
"nullable": false
},
"name": "guest_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 66,
"column": 18,
"length": 12
},
"field_shape_v1": {
"offset": 36,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 9,
"subtype": "interrupt",
"rights": 2147483648,
"nullable": false
},
"name": "interrupt_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 67,
"column": 22,
"length": 16
},
"field_shape_v1": {
"offset": 40,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 23,
"subtype": "iommu",
"rights": 2147483648,
"nullable": false
},
"name": "iommu_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 68,
"column": 18,
"length": 12
},
"field_shape_v1": {
"offset": 44,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 17,
"subtype": "job",
"rights": 2147483648,
"nullable": false
},
"name": "job_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 69,
"column": 16,
"length": 10
},
"field_shape_v1": {
"offset": 48,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 28,
"subtype": "pager",
"rights": 2147483648,
"nullable": false
},
"name": "pager_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 70,
"column": 18,
"length": 12
},
"field_shape_v1": {
"offset": 52,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 11,
"subtype": "pcidevice",
"rights": 2147483648,
"nullable": false
},
"name": "pcidevice_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 71,
"column": 23,
"length": 16
},
"field_shape_v1": {
"offset": 56,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 26,
"subtype": "pmt",
"rights": 2147483648,
"nullable": false
},
"name": "pmt_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 72,
"column": 16,
"length": 10
},
"field_shape_v1": {
"offset": 60,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 6,
"subtype": "port",
"rights": 2147483648,
"nullable": false
},
"name": "port_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 73,
"column": 17,
"length": 11
},
"field_shape_v1": {
"offset": 64,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 1,
"subtype": "process",
"rights": 2147483648,
"nullable": false
},
"name": "process_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 74,
"column": 20,
"length": 14
},
"field_shape_v1": {
"offset": 68,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 25,
"subtype": "profile",
"rights": 2147483648,
"nullable": false
},
"name": "profile_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 75,
"column": 20,
"length": 14
},
"field_shape_v1": {
"offset": 72,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 15,
"subtype": "resource",
"rights": 2147483648,
"nullable": false
},
"name": "resource_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 76,
"column": 21,
"length": 15
},
"field_shape_v1": {
"offset": 76,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 2147483648,
"nullable": false
},
"name": "socket_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 77,
"column": 19,
"length": 13
},
"field_shape_v1": {
"offset": 80,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 27,
"subtype": "suspendtoken",
"rights": 2147483648,
"nullable": false
},
"name": "suspendtoken_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 78,
"column": 26,
"length": 19
},
"field_shape_v1": {
"offset": 84,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 2,
"subtype": "thread",
"rights": 2147483648,
"nullable": false
},
"name": "thread_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 79,
"column": 19,
"length": 13
},
"field_shape_v1": {
"offset": 88,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 22,
"subtype": "timer",
"rights": 2147483648,
"nullable": false
},
"name": "timer_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 80,
"column": 18,
"length": 12
},
"field_shape_v1": {
"offset": 92,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 21,
"subtype": "vcpu",
"rights": 2147483648,
"nullable": false
},
"name": "vcpu_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 81,
"column": 17,
"length": 11
},
"field_shape_v1": {
"offset": 96,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 18,
"subtype": "vmar",
"rights": 2147483648,
"nullable": false
},
"name": "vmar_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 82,
"column": 17,
"length": 11
},
"field_shape_v1": {
"offset": 100,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 3,
"subtype": "vmo",
"rights": 2147483648,
"nullable": false
},
"name": "vmo_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 83,
"column": 16,
"length": 10
},
"field_shape_v1": {
"offset": 104,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 3,
"subtype": "vmo",
"rights": 5,
"nullable": false
},
"name": "rights_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 85,
"column": 56,
"length": 13
},
"field_shape_v1": {
"offset": 108,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 0,
"subtype": "handle",
"rights": 2147483648,
"nullable": false
},
"experimental_maybe_from_type_alias": {
"name": "fidl.test.handles/aliased_plain_handle",
"args": [],
"nullable": false
},
"name": "aliased_plain_handle_field",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 87,
"column": 26,
"length": 26
},
"field_shape_v1": {
"offset": 112,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 3,
"subtype": "vmo",
"rights": 2147483648,
"nullable": false
},
"experimental_maybe_from_type_alias": {
"name": "fidl.test.handles/aliased_subtype_handle",
"args": [],
"nullable": false
},
"name": "aliased_subtype_handle_field",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 88,
"column": 28,
"length": 28
},
"field_shape_v1": {
"offset": 116,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"obj_type": 3,
"subtype": "vmo",
"rights": 1,
"nullable": false
},
"experimental_maybe_from_type_alias": {
"name": "fidl.test.handles/aliased_rights_handle",
"args": [],
"nullable": false
},
"name": "aliased_rights_handle_field",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 89,
"column": 27,
"length": 27
},
"field_shape_v1": {
"offset": 120,
"padding": 0
}
},
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.handles/SomeProtocol",
"nullable": false
},
"name": "some_protocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 91,
"column": 18,
"length": 13
},
"field_shape_v1": {
"offset": 124,
"padding": 0
}
},
{
"type": {
"kind": "request",
"subtype": "fidl.test.handles/SomeProtocol",
"nullable": false
},
"name": "request_some_protocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 92,
"column": 27,
"length": 21
},
"field_shape_v1": {
"offset": 128,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 132,
"alignment": 4,
"depth": 0,
"max_handles": 33,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
}
}
],
"table_declarations": [],
"union_declarations": [],
"type_alias_declarations": [
{
"name": "fidl.test.handles/aliased_plain_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 51,
"column": 7,
"length": 20
},
"partial_type_ctor": {
"name": "handle",
"args": [],
"nullable": false
}
},
{
"name": "fidl.test.handles/aliased_subtype_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 52,
"column": 7,
"length": 22
},
"partial_type_ctor": {
"name": "handle",
"args": [],
"nullable": false
}
},
{
"name": "fidl.test.handles/aliased_rights_handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/handles.test.fidl",
"line": 53,
"column": 7,
"length": 21
},
"partial_type_ctor": {
"name": "handle",
"args": [],
"nullable": false,
"handle_rights": {
"kind": "identifier",
"value": "1",
"expression": "zx.rights.DUPLICATE",
"identifier": "zx/rights.DUPLICATE"
}
}
}
],
"declaration_order": [
"fidl.test.handles/obj_type",
"fidl.test.handles/handle",
"fidl.test.handles/aliased_subtype_handle",
"fidl.test.handles/aliased_rights_handle",
"fidl.test.handles/aliased_plain_handle",
"fidl.test.handles/Handles",
"fidl.test.handles/SomeProtocol"
],
"declarations": {
"fidl.test.handles/obj_type": "enum",
"fidl.test.handles/handle": "experimental_resource",
"fidl.test.handles/SomeProtocol": "interface",
"fidl.test.handles/Handles": "struct",
"fidl.test.handles/aliased_plain_handle": "type_alias",
"fidl.test.handles/aliased_subtype_handle": "type_alias",
"fidl.test.handles/aliased_rights_handle": "type_alias"
}
}