blob: 8532e6a9a8003bc1792804bd31a77dfb018c3ede [file] [log] [blame]
{
"version": "0.0.1",
"name": "test.name",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"interface_declarations": [
{
"name": "test.name/SomeProtocol",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 3,
"column": 10
},
"methods": [
{
"ordinal": 1898969890996355072,
"generated_ordinal": 8577712332834451230,
"name": "SomeMethod",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 4,
"column": 5
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
},
"has_response": false,
"is_composed": false
}
]
}
],
"service_declarations": [],
"struct_declarations": [
{
"name": "test.name/Handles",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 7,
"column": 8
},
"anonymous": false,
"members": [
{
"type": {
"kind": "handle",
"subtype": "handle",
"rights": 2147483648,
"nullable": false
},
"name": "plain_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 8,
"column": 12
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "bti",
"rights": 2147483648,
"nullable": false
},
"name": "bti_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 10,
"column": 17
},
"field_shape_v1": {
"offset": 4,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "channel",
"rights": 2147483648,
"nullable": false
},
"name": "channel_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 11,
"column": 21
},
"field_shape_v1": {
"offset": 8,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "debuglog",
"rights": 2147483648,
"nullable": false
},
"name": "debuglog_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 12,
"column": 22
},
"field_shape_v1": {
"offset": 12,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "event",
"rights": 2147483648,
"nullable": false
},
"name": "event_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 13,
"column": 19
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "eventpair",
"rights": 2147483648,
"nullable": false
},
"name": "eventpair_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 14,
"column": 23
},
"field_shape_v1": {
"offset": 20,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "exception",
"rights": 2147483648,
"nullable": false
},
"name": "exception_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 15,
"column": 23
},
"field_shape_v1": {
"offset": 24,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "fifo",
"rights": 2147483648,
"nullable": false
},
"name": "fifo_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 16,
"column": 18
},
"field_shape_v1": {
"offset": 28,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "guest",
"rights": 2147483648,
"nullable": false
},
"name": "guest_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 17,
"column": 19
},
"field_shape_v1": {
"offset": 32,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "interrupt",
"rights": 2147483648,
"nullable": false
},
"name": "interrupt_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 18,
"column": 23
},
"field_shape_v1": {
"offset": 36,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "iommu",
"rights": 2147483648,
"nullable": false
},
"name": "iommu_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 19,
"column": 19
},
"field_shape_v1": {
"offset": 40,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "job",
"rights": 2147483648,
"nullable": false
},
"name": "job_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 20,
"column": 17
},
"field_shape_v1": {
"offset": 44,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "pager",
"rights": 2147483648,
"nullable": false
},
"name": "pager_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 21,
"column": 19
},
"field_shape_v1": {
"offset": 48,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "pcidevice",
"rights": 2147483648,
"nullable": false
},
"name": "pcidevice_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 22,
"column": 23
},
"field_shape_v1": {
"offset": 52,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "pmt",
"rights": 2147483648,
"nullable": false
},
"name": "pmt_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 23,
"column": 17
},
"field_shape_v1": {
"offset": 56,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "port",
"rights": 2147483648,
"nullable": false
},
"name": "port_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 24,
"column": 18
},
"field_shape_v1": {
"offset": 60,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "process",
"rights": 2147483648,
"nullable": false
},
"name": "process_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 25,
"column": 21
},
"field_shape_v1": {
"offset": 64,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "profile",
"rights": 2147483648,
"nullable": false
},
"name": "profile_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 26,
"column": 21
},
"field_shape_v1": {
"offset": 68,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "resource",
"rights": 2147483648,
"nullable": false
},
"name": "resource_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 27,
"column": 22
},
"field_shape_v1": {
"offset": 72,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "socket",
"rights": 2147483648,
"nullable": false
},
"name": "socket_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 28,
"column": 20
},
"field_shape_v1": {
"offset": 76,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "suspendtoken",
"rights": 2147483648,
"nullable": false
},
"name": "suspendtoken_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 29,
"column": 26
},
"field_shape_v1": {
"offset": 80,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "thread",
"rights": 2147483648,
"nullable": false
},
"name": "thread_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 30,
"column": 20
},
"field_shape_v1": {
"offset": 84,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "timer",
"rights": 2147483648,
"nullable": false
},
"name": "timer_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 31,
"column": 19
},
"field_shape_v1": {
"offset": 88,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "vcpu",
"rights": 2147483648,
"nullable": false
},
"name": "vcpu_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 32,
"column": 18
},
"field_shape_v1": {
"offset": 92,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "vmar",
"rights": 2147483648,
"nullable": false
},
"name": "vmar_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 33,
"column": 18
},
"field_shape_v1": {
"offset": 96,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "vmo",
"rights": 2147483648,
"nullable": false
},
"name": "vmo_handle",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 34,
"column": 17
},
"field_shape_v1": {
"offset": 100,
"padding": 0
}
},
{
"type": {
"kind": "identifier",
"identifier": "test.name/SomeProtocol",
"nullable": false
},
"name": "some_protocol",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 36,
"column": 18
},
"field_shape_v1": {
"offset": 104,
"padding": 0
}
},
{
"type": {
"kind": "request",
"subtype": "test.name/SomeProtocol",
"nullable": false
},
"name": "request_some_protocol",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/handles.test.fidl",
"line": 37,
"column": 27
},
"field_shape_v1": {
"offset": 108,
"padding": 0
}
}
],
"type_shape_v1": {
"inline_size": 112,
"alignment": 4,
"depth": 0,
"max_handles": 28,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
}
}
],
"table_declarations": [],
"union_declarations": [],
"xunion_declarations": [],
"type_alias_declarations": [],
"declaration_order": [
"test.name/SomeProtocol",
"test.name/Handles"
],
"declarations": {
"test.name/SomeProtocol": "interface",
"test.name/SomeLongAnonymousPrefix0": "struct",
"test.name/Handles": "struct"
}
}