blob: 467ef8290da8635015faf825e6b71adf44b4983f [file] [log] [blame]
{
"name": "test.protocols",
"library_dependencies": [
{
"name": "zx",
"declarations": {
"zx/rights": {
"kind": "bits"
},
"zx/CHANNEL_MAX_MSG_BYTES": {
"kind": "const"
},
"zx/CHANNEL_MAX_MSG_HANDLES": {
"kind": "const"
},
"zx/DEFAULT_CHANNEL_RIGHTS": {
"kind": "const"
},
"zx/DEFAULT_EVENT_RIGHTS": {
"kind": "const"
},
"zx/MAX_CPUS": {
"kind": "const"
},
"zx/MAX_NAME_LEN": {
"kind": "const"
},
"zx/RIGHTS_BASIC": {
"kind": "const"
},
"zx/RIGHTS_IO": {
"kind": "const"
},
"zx/RIGHTS_POLICY": {
"kind": "const"
},
"zx/RIGHTS_PROPERTY": {
"kind": "const"
},
"zx/obj_type": {
"kind": "enum"
},
"zx/handle": {
"kind": "experimental_resource"
},
"zx/duration": {
"kind": "type_alias"
},
"zx/gpaddr": {
"kind": "type_alias"
},
"zx/koid": {
"kind": "type_alias"
},
"zx/off": {
"kind": "type_alias"
},
"zx/paddr": {
"kind": "type_alias"
},
"zx/paddr32": {
"kind": "type_alias"
},
"zx/procarg": {
"kind": "type_alias"
},
"zx/signals": {
"kind": "type_alias"
},
"zx/status": {
"kind": "type_alias"
},
"zx/ticks": {
"kind": "type_alias"
},
"zx/time": {
"kind": "type_alias"
},
"zx/vaddr": {
"kind": "type_alias"
}
}
}
],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [
{
"name": "test.protocols/ErrorEnum",
"naming_context": [
"ErrorEnum"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 28,
"column": 6,
"length": 9
},
"type": "uint32",
"members": [
{
"name": "ERR_FOO",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 29,
"column": 5,
"length": 7
},
"value": {
"kind": "literal",
"value": "1",
"expression": "1",
"literal": {
"kind": "numeric",
"value": "1",
"expression": "1"
}
}
},
{
"name": "ERR_BAR",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 30,
"column": 5,
"length": 7
},
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
}
}
],
"strict": true
}
],
"experimental_resource_declarations": [],
"protocol_declarations": [
{
"name": "test.protocols/AnotherDiscoverableProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 105,
"column": 10,
"length": 27
},
"maybe_attributes": [
{
"name": "discoverable",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": "fake.library.FakeProtocol",
"expression": "\"fake.library.FakeProtocol\"",
"literal": {
"kind": "string",
"value": "fake.library.FakeProtocol",
"expression": "\"fake.library.FakeProtocol\""
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 104,
"column": 15,
"length": 27
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 104,
"column": 1,
"length": 42
}
}
],
"composed_protocols": [],
"methods": []
},
{
"name": "test.protocols/ChannelProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 47,
"column": 10,
"length": 15
},
"maybe_attributes": [
{
"name": "transport",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": "Channel",
"expression": "\"Channel\"",
"literal": {
"kind": "string",
"value": "Channel",
"expression": "\"Channel\""
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 46,
"column": 12,
"length": 9
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 46,
"column": 1,
"length": 21
}
}
],
"composed_protocols": [],
"methods": [
{
"ordinal": 3155008840945527714,
"name": "MethodA",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 48,
"column": 5,
"length": 7
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/ChannelProtocolMethodARequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": false,
"is_composed": false,
"has_error": false
},
{
"ordinal": 2220452875311597006,
"name": "EventA",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 52,
"column": 8,
"length": 6
},
"has_request": false,
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/ChannelProtocolEventARequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
},
{
"ordinal": 8903004957800778182,
"name": "MethodB",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 56,
"column": 5,
"length": 7
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/ChannelProtocolMethodBRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/ChannelProtocolMethodBTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
},
{
"ordinal": 591935489944717925,
"name": "TakeHandle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 62,
"column": 5,
"length": 10
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/ChannelProtocolTakeHandleRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"is_composed": false,
"has_error": false
},
{
"ordinal": 7411742788430590287,
"name": "MutateSocket",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 65,
"column": 5,
"length": 12
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/ChannelProtocolMutateSocketRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/ChannelProtocolMutateSocketTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
}
]
},
{
"name": "test.protocols/DiscoverableProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 100,
"column": 10,
"length": 20
},
"maybe_attributes": [
{
"name": "discoverable",
"arguments": [],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 99,
"column": 1,
"length": 13
}
}
],
"composed_protocols": [],
"methods": [
{
"ordinal": 3455873048082739435,
"name": "Method",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 101,
"column": 5,
"length": 6
},
"has_request": true,
"has_response": false,
"is_composed": false,
"has_error": false
}
]
},
{
"name": "test.protocols/HandleRightsProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 107,
"column": 10,
"length": 20
},
"composed_protocols": [],
"methods": [
{
"ordinal": 1155044649514904573,
"name": "NoResponseMethod",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 108,
"column": 5,
"length": 16
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/HandleRightsProtocolNoResponseMethodRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": false,
"is_composed": false,
"has_error": false
},
{
"ordinal": 5956276128041940295,
"name": "ResponseMethod",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 111,
"column": 5,
"length": 14
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/HandleRightsProtocolResponseMethodRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/HandleRightsProtocolResponseMethodTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
},
{
"ordinal": 476727631355490611,
"name": "AnEvent",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 116,
"column": 8,
"length": 7
},
"has_request": false,
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/HandleRightsProtocolAnEventRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
}
]
},
{
"name": "test.protocols/ManyParameters",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 146,
"column": 10,
"length": 14
},
"composed_protocols": [],
"methods": [
{
"ordinal": 6423043252952467815,
"name": "Fifteen",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 149,
"column": 5,
"length": 7
},
"has_request": true,
"maybe_attributes": [
{
"name": "bindings_denylist",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": "rust",
"expression": "\"rust\"",
"literal": {
"kind": "string",
"value": "rust",
"expression": "\"rust\""
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 148,
"column": 24,
"length": 6
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 148,
"column": 5,
"length": 26
}
}
],
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/ManyParametersFifteenRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 15,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 15,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": false,
"is_composed": false,
"has_error": false
}
]
},
{
"name": "test.protocols/MethodWithUnion",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 172,
"column": 10,
"length": 15
},
"composed_protocols": [],
"methods": [
{
"ordinal": 4124874338266649112,
"name": "UnionMethod",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 173,
"column": 5,
"length": 11
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/MethodWithUnionUnionMethodRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/MethodWithUnionUnionMethodTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
"is_composed": false,
"has_error": false
}
]
},
{
"name": "test.protocols/SyscallProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 73,
"column": 10,
"length": 15
},
"maybe_attributes": [
{
"name": "transport",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": "Syscall",
"expression": "\"Syscall\"",
"literal": {
"kind": "string",
"value": "Syscall",
"expression": "\"Syscall\""
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 72,
"column": 12,
"length": 9
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 72,
"column": 1,
"length": 21
}
}
],
"composed_protocols": [],
"methods": [
{
"ordinal": 1468025868259603279,
"name": "MethodC",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 74,
"column": 5,
"length": 7
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/SyscallProtocolMethodCRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": false,
"is_composed": false,
"has_error": false
}
]
},
{
"name": "test.protocols/Transitional",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 80,
"column": 10,
"length": 12
},
"composed_protocols": [],
"methods": [
{
"ordinal": 5849263021838298888,
"name": "Request",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 82,
"column": 5,
"length": 7
},
"has_request": true,
"maybe_attributes": [
{
"name": "transitional",
"arguments": [],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 81,
"column": 5,
"length": 13
}
}
],
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/TransitionalRequestRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/TransitionalRequestTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
},
{
"ordinal": 4336658926562441191,
"name": "OneWay",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 89,
"column": 5,
"length": 6
},
"has_request": true,
"maybe_attributes": [
{
"name": "transitional",
"arguments": [],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 88,
"column": 5,
"length": 13
}
}
],
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/TransitionalOneWayRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": false,
"is_composed": false,
"has_error": false
},
{
"ordinal": 8507647465196374081,
"name": "Event",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 94,
"column": 8,
"length": 5
},
"has_request": false,
"maybe_attributes": [
{
"name": "transitional",
"arguments": [],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 93,
"column": 5,
"length": 13
}
}
],
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/TransitionalEventRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
}
]
},
{
"name": "test.protocols/WithAndWithoutRequestResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 5,
"column": 10,
"length": 29
},
"composed_protocols": [],
"methods": [
{
"ordinal": 5413654872775949227,
"name": "NoRequestNoResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 6,
"column": 5,
"length": 19
},
"has_request": true,
"has_response": false,
"is_composed": false,
"has_error": false
},
{
"ordinal": 1631193469798418024,
"name": "NoRequestEmptyResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 7,
"column": 5,
"length": 22
},
"has_request": true,
"has_response": true,
"is_composed": false,
"has_error": false
},
{
"ordinal": 9037369643591427517,
"name": "NoRequestWithResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 8,
"column": 5,
"length": 21
},
"has_request": true,
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithAndWithoutRequestResponseNoRequestWithResponseTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
},
{
"ordinal": 7326057319832554103,
"name": "WithRequestNoResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 11,
"column": 5,
"length": 21
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithAndWithoutRequestResponseWithRequestNoResponseRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": false,
"is_composed": false,
"has_error": false
},
{
"ordinal": 2877322062572412767,
"name": "WithRequestEmptyResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 14,
"column": 5,
"length": 24
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithAndWithoutRequestResponseWithRequestEmptyResponseRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"is_composed": false,
"has_error": false
},
{
"ordinal": 6417226585456833969,
"name": "WithRequestWithResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 17,
"column": 5,
"length": 23
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithAndWithoutRequestResponseWithRequestWithResponseRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithAndWithoutRequestResponseWithRequestWithResponseTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
},
{
"ordinal": 5397663296507358806,
"name": "OnEmptyResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 22,
"column": 8,
"length": 15
},
"has_request": false,
"has_response": true,
"is_composed": false,
"has_error": false
},
{
"ordinal": 5811598563493228968,
"name": "OnWithResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 23,
"column": 8,
"length": 14
},
"has_request": false,
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithAndWithoutRequestResponseOnWithResponseRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
}
]
},
{
"name": "test.protocols/WithErrorSyntax",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 33,
"column": 10,
"length": 15
},
"composed_protocols": [],
"methods": [
{
"ordinal": 268248568430741139,
"name": "ResponseAsStruct",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 5,
"length": 16
},
"has_request": true,
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntaxResponseAsStructTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": true,
"maybe_response_result_type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ResponseAsStruct_Result",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"maybe_response_success_type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ResponseAsStruct_Response",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"maybe_response_err_type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
}
},
{
"ordinal": 6930994461233198567,
"name": "ErrorAsPrimitive",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 39,
"column": 5,
"length": 16
},
"has_request": true,
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntaxErrorAsPrimitiveTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": true,
"maybe_response_result_type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"maybe_response_success_type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ErrorAsPrimitive_Response",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"maybe_response_err_type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
}
},
{
"ordinal": 5491891352371277635,
"name": "ErrorAsEnum",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 40,
"column": 5,
"length": 11
},
"has_request": true,
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntaxErrorAsEnumTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": true,
"maybe_response_result_type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ErrorAsEnum_Result",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"maybe_response_success_type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ErrorAsEnum_Response",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"maybe_response_err_type": {
"kind": "identifier",
"identifier": "test.protocols/ErrorEnum",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
}
},
{
"ordinal": 1371676333068455103,
"name": "HandleInResult",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 5,
"length": 14
},
"has_request": true,
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntaxHandleInResultTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": true,
"maybe_response_result_type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_HandleInResult_Result",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"maybe_response_success_type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_HandleInResult_Response",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"maybe_response_err_type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
}
}
]
},
{
"name": "test.protocols/WithProtocolEnds",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 128,
"column": 10,
"length": 16
},
"composed_protocols": [],
"methods": [
{
"ordinal": 5870448041025163330,
"name": "ClientEnds",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 129,
"column": 5,
"length": 10
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithProtocolEndsClientEndsRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithProtocolEndsClientEndsTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
},
{
"ordinal": 8115535094437022259,
"name": "ServerEnds",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 134,
"column": 5,
"length": 10
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithProtocolEndsServerEndsRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithProtocolEndsServerEndsTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
},
{
"ordinal": 4076866772260025813,
"name": "StructContainingEnds",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 139,
"column": 5,
"length": 20
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithProtocolEndsStructContainingEndsRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.protocols/WithProtocolEndsStructContainingEndsTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
}
]
}
],
"service_declarations": [],
"struct_declarations": [
{
"name": "test.protocols/ChannelProtocolEventARequest",
"naming_context": [
"ChannelProtocol",
"EventA",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 52,
"column": 15,
"length": 48
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 53,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 54,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"field_shape_v2": {
"offset": 8,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/ChannelProtocolMethodARequest",
"naming_context": [
"ChannelProtocol",
"MethodA",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 48,
"column": 13,
"length": 48
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 49,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 50,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"field_shape_v2": {
"offset": 8,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/ChannelProtocolMethodBRequest",
"naming_context": [
"ChannelProtocol",
"MethodB",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 56,
"column": 13,
"length": 48
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 57,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 58,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"field_shape_v2": {
"offset": 8,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/ChannelProtocolMethodBTopResponse",
"naming_context": [
"ChannelProtocol",
"MethodB",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 59,
"column": 12,
"length": 36
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "result",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 60,
"column": 9,
"length": 6
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/ChannelProtocolMutateSocketRequest",
"naming_context": [
"ChannelProtocol",
"MutateSocket",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 65,
"column": 18,
"length": 51
},
"members": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 2147483648,
"nullable": false,
"resource_identifier": "zx/handle",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 66,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/ChannelProtocolMutateSocketTopResponse",
"naming_context": [
"ChannelProtocol",
"MutateSocket",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 67,
"column": 12,
"length": 51
},
"members": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 2147483648,
"nullable": false,
"resource_identifier": "zx/handle",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 68,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/ChannelProtocolTakeHandleRequest",
"naming_context": [
"ChannelProtocol",
"TakeHandle",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 62,
"column": 16,
"length": 44
},
"members": [
{
"type": {
"kind": "handle",
"obj_type": 0,
"subtype": "handle",
"rights": 2147483648,
"nullable": false,
"resource_identifier": "zx/handle",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "h",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 63,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/HandleRightsProtocolAnEventRequest",
"naming_context": [
"HandleRightsProtocol",
"AnEvent",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 116,
"column": 16,
"length": 95
},
"members": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 3,
"nullable": false,
"resource_identifier": "zx/handle",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "h",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 117,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/HandleRightsProtocolNoResponseMethodRequest",
"naming_context": [
"HandleRightsProtocol",
"NoResponseMethod",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 108,
"column": 22,
"length": 95
},
"members": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 3,
"nullable": false,
"resource_identifier": "zx/handle",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "h",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 109,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/HandleRightsProtocolResponseMethodRequest",
"naming_context": [
"HandleRightsProtocol",
"ResponseMethod",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 111,
"column": 20,
"length": 95
},
"members": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 3,
"nullable": false,
"resource_identifier": "zx/handle",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "h",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 112,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/HandleRightsProtocolResponseMethodTopResponse",
"naming_context": [
"HandleRightsProtocol",
"ResponseMethod",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 113,
"column": 12,
"length": 73
},
"members": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 2,
"nullable": false,
"resource_identifier": "zx/handle",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "h",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 114,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/ManyParametersFifteenRequest",
"naming_context": [
"ManyParameters",
"Fifteen",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 149,
"column": 13,
"length": 275
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p1",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 150,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p2",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 151,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 1,
"padding": 0
},
"field_shape_v2": {
"offset": 1,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p3",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 152,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 2,
"padding": 0
},
"field_shape_v2": {
"offset": 2,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p4",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 153,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 3,
"padding": 0
},
"field_shape_v2": {
"offset": 3,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p5",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 154,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 4,
"padding": 0
},
"field_shape_v2": {
"offset": 4,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p6",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 155,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 5,
"padding": 0
},
"field_shape_v2": {
"offset": 5,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p7",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 156,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 6,
"padding": 0
},
"field_shape_v2": {
"offset": 6,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p8",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 157,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 7,
"padding": 0
},
"field_shape_v2": {
"offset": 7,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p9",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 158,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"field_shape_v2": {
"offset": 8,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p10",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 159,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 9,
"padding": 0
},
"field_shape_v2": {
"offset": 9,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p11",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 160,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 10,
"padding": 0
},
"field_shape_v2": {
"offset": 10,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p12",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 161,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 11,
"padding": 0
},
"field_shape_v2": {
"offset": 11,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p13",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 162,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 12,
"padding": 0
},
"field_shape_v2": {
"offset": 12,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p14",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 163,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 13,
"padding": 0
},
"field_shape_v2": {
"offset": 13,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p15",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 164,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 14,
"padding": 0
},
"field_shape_v2": {
"offset": 14,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 15,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 15,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/MethodWithUnionUnionMethodRequest",
"naming_context": [
"MethodWithUnion",
"UnionMethod",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 173,
"column": 17,
"length": 34
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/TheUnion",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
"name": "u",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 174,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
{
"name": "test.protocols/MethodWithUnionUnionMethodTopResponse",
"naming_context": [
"MethodWithUnion",
"UnionMethod",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 175,
"column": 12,
"length": 43
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/TheUnion",
"nullable": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
"name": "u",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 176,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
{
"name": "test.protocols/ProtocolEnds",
"naming_context": [
"ProtocolEnds"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 121,
"column": 6,
"length": 12
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/DiscoverableProtocol",
"nullable": false,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "client",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 122,
"column": 5,
"length": 6
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "request",
"subtype": "test.protocols/DiscoverableProtocol",
"nullable": false,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "server",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 123,
"column": 5,
"length": 6
},
"field_shape_v1": {
"offset": 4,
"padding": 0
},
"field_shape_v2": {
"offset": 4,
"padding": 0
}
},
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/DiscoverableProtocol",
"nullable": true,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "client_opt",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 124,
"column": 5,
"length": 10
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"field_shape_v2": {
"offset": 8,
"padding": 0
}
},
{
"type": {
"kind": "request",
"subtype": "test.protocols/DiscoverableProtocol",
"nullable": true,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "server_opt",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 125,
"column": 5,
"length": 10
},
"field_shape_v1": {
"offset": 12,
"padding": 0
},
"field_shape_v2": {
"offset": 12,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/SyscallProtocolMethodCRequest",
"naming_context": [
"SyscallProtocol",
"MethodC",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 74,
"column": 13,
"length": 48
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 75,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 76,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"field_shape_v2": {
"offset": 8,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/TransitionalEventRequest",
"naming_context": [
"Transitional",
"Event",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 94,
"column": 14,
"length": 31
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 95,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/TransitionalOneWayRequest",
"naming_context": [
"Transitional",
"OneWay",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 89,
"column": 12,
"length": 31
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 90,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/TransitionalRequestRequest",
"naming_context": [
"Transitional",
"Request",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 82,
"column": 13,
"length": 31
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 83,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/TransitionalRequestTopResponse",
"naming_context": [
"Transitional",
"Request",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 84,
"column": 12,
"length": 31
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "y",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 85,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithAndWithoutRequestResponseNoRequestWithResponseTopResponse",
"naming_context": [
"WithAndWithoutRequestResponse",
"NoRequestWithResponse",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 8,
"column": 33,
"length": 34
},
"members": [
{
"type": {
"kind": "string",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "ret",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 9,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithAndWithoutRequestResponseOnWithResponseRequest",
"naming_context": [
"WithAndWithoutRequestResponse",
"OnWithResponse",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 23,
"column": 23,
"length": 34
},
"members": [
{
"type": {
"kind": "string",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "ret",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 24,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithAndWithoutRequestResponseWithRequestEmptyResponseRequest",
"naming_context": [
"WithAndWithoutRequestResponse",
"WithRequestEmptyResponse",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 14,
"column": 30,
"length": 34
},
"members": [
{
"type": {
"kind": "string",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "arg",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 15,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithAndWithoutRequestResponseWithRequestNoResponseRequest",
"naming_context": [
"WithAndWithoutRequestResponse",
"WithRequestNoResponse",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 11,
"column": 27,
"length": 34
},
"members": [
{
"type": {
"kind": "string",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "arg",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 12,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithAndWithoutRequestResponseWithRequestWithResponseRequest",
"naming_context": [
"WithAndWithoutRequestResponse",
"WithRequestWithResponse",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 17,
"column": 29,
"length": 34
},
"members": [
{
"type": {
"kind": "string",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "arg",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 18,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithAndWithoutRequestResponseWithRequestWithResponseTopResponse",
"naming_context": [
"WithAndWithoutRequestResponse",
"WithRequestWithResponse",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 19,
"column": 12,
"length": 34
},
"members": [
{
"type": {
"kind": "string",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "ret",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 20,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntaxErrorAsEnumTopResponse",
"naming_context": [
"WithErrorSyntax",
"ErrorAsEnum",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 40,
"column": 22,
"length": 11
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ErrorAsEnum_Result",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"name": "result",
"location": {
"filename": "generated",
"line": 11,
"column": 1,
"length": 6
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntaxErrorAsPrimitiveTopResponse",
"naming_context": [
"WithErrorSyntax",
"ErrorAsPrimitive",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 39,
"column": 27,
"length": 11
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"name": "result",
"location": {
"filename": "generated",
"line": 6,
"column": 1,
"length": 6
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntaxHandleInResultTopResponse",
"naming_context": [
"WithErrorSyntax",
"HandleInResult",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 25,
"length": 46
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_HandleInResult_Result",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"name": "result",
"location": {
"filename": "generated",
"line": 16,
"column": 1,
"length": 6
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntaxResponseAsStructTopResponse",
"naming_context": [
"WithErrorSyntax",
"ResponseAsStruct",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 27,
"length": 67
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ResponseAsStruct_Result",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"name": "result",
"location": {
"filename": "generated",
"line": 1,
"column": 1,
"length": 6
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntax_ErrorAsEnum_Response",
"naming_context": [
"WithErrorSyntax",
"ErrorAsEnum",
"Response",
"result",
"response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 40,
"column": 23,
"length": 9
},
"members": [],
"resource": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntax_ErrorAsPrimitive_Response",
"naming_context": [
"WithErrorSyntax",
"ErrorAsPrimitive",
"Response",
"result",
"response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 39,
"column": 28,
"length": 9
},
"members": [],
"resource": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntax_HandleInResult_Response",
"naming_context": [
"WithErrorSyntax",
"HandleInResult",
"Response",
"result",
"response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 26,
"length": 44
},
"members": [
{
"type": {
"kind": "handle",
"obj_type": 0,
"subtype": "handle",
"rights": 2147483648,
"nullable": false,
"resource_identifier": "zx/handle",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "h",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 42,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntax_ResponseAsStruct_Response",
"naming_context": [
"WithErrorSyntax",
"ResponseAsStruct",
"Response",
"result",
"response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 28,
"length": 65
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 35,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 36,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"field_shape_v2": {
"offset": 8,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "c",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 37,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"field_shape_v2": {
"offset": 16,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithProtocolEndsClientEndsRequest",
"naming_context": [
"WithProtocolEnds",
"ClientEnds",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 129,
"column": 16,
"length": 67
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/DiscoverableProtocol",
"nullable": false,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "in",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 130,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithProtocolEndsClientEndsTopResponse",
"naming_context": [
"WithProtocolEnds",
"ClientEnds",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 131,
"column": 12,
"length": 80
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/DiscoverableProtocol",
"nullable": true,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "out",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 132,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithProtocolEndsServerEndsRequest",
"naming_context": [
"WithProtocolEnds",
"ServerEnds",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 134,
"column": 16,
"length": 79
},
"members": [
{
"type": {
"kind": "request",
"subtype": "test.protocols/DiscoverableProtocol",
"nullable": true,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "in",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 135,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithProtocolEndsServerEndsTopResponse",
"naming_context": [
"WithProtocolEnds",
"ServerEnds",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 136,
"column": 12,
"length": 68
},
"members": [
{
"type": {
"kind": "request",
"subtype": "test.protocols/DiscoverableProtocol",
"nullable": false,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "out",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 137,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithProtocolEndsStructContainingEndsRequest",
"naming_context": [
"WithProtocolEnds",
"StructContainingEnds",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 139,
"column": 26,
"length": 48
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/ProtocolEnds",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "in",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 140,
"column": 9,
"length": 2
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithProtocolEndsStructContainingEndsTopResponse",
"naming_context": [
"WithProtocolEnds",
"StructContainingEnds",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 141,
"column": 12,
"length": 49
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.protocols/ProtocolEnds",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "out",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 142,
"column": 9,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 4,
"depth": 0,
"max_handles": 4,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
}
],
"external_struct_declarations": [],
"table_declarations": [],
"union_declarations": [
{
"name": "test.protocols/TheUnion",
"naming_context": [
"TheUnion"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 168,
"column": 6,
"length": 8
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "v",
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 169,
"column": 8,
"length": 1
}
}
],
"strict": false,
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
{
"name": "test.protocols/WithErrorSyntax_ErrorAsEnum_Result",
"naming_context": [
"WithErrorSyntax",
"ErrorAsEnum",
"Response",
"result"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 40,
"column": 22,
"length": 11
},
"maybe_attributes": [
{
"name": "result",
"arguments": []
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ErrorAsEnum_Response",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "generated",
"line": 12,
"column": 1,
"length": 8
}
},
{
"ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "identifier",
"identifier": "test.protocols/ErrorEnum",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "generated",
"line": 13,
"column": 1,
"length": 3
}
}
],
"strict": true,
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result",
"naming_context": [
"WithErrorSyntax",
"ErrorAsPrimitive",
"Response",
"result"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 39,
"column": 27,
"length": 11
},
"maybe_attributes": [
{
"name": "result",
"arguments": []
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ErrorAsPrimitive_Response",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "generated",
"line": 7,
"column": 1,
"length": 8
}
},
{
"ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "generated",
"line": 8,
"column": 1,
"length": 3
}
}
],
"strict": true,
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntax_HandleInResult_Result",
"naming_context": [
"WithErrorSyntax",
"HandleInResult",
"Response",
"result"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 25,
"length": 46
},
"maybe_attributes": [
{
"name": "result",
"arguments": []
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_HandleInResult_Response",
"nullable": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "generated",
"line": 17,
"column": 1,
"length": 8
}
},
{
"ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "generated",
"line": 18,
"column": 1,
"length": 3
}
}
],
"strict": true,
"resource": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
{
"name": "test.protocols/WithErrorSyntax_ResponseAsStruct_Result",
"naming_context": [
"WithErrorSyntax",
"ResponseAsStruct",
"Response",
"result"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 27,
"length": 67
},
"maybe_attributes": [
{
"name": "result",
"arguments": []
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "test.protocols/WithErrorSyntax_ResponseAsStruct_Response",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "generated",
"line": 2,
"column": 1,
"length": 8
}
},
{
"ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "generated",
"line": 3,
"column": 1,
"length": 3
}
}
],
"strict": true,
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
}
],
"type_alias_declarations": [],
"declaration_order": [
"test.protocols/WithProtocolEndsServerEndsTopResponse",
"test.protocols/WithProtocolEndsServerEndsRequest",
"test.protocols/WithProtocolEndsClientEndsTopResponse",
"test.protocols/WithProtocolEndsClientEndsRequest",
"test.protocols/WithErrorSyntax_ResponseAsStruct_Response",
"test.protocols/WithErrorSyntax_ResponseAsStruct_Result",
"test.protocols/WithErrorSyntaxResponseAsStructTopResponse",
"test.protocols/WithErrorSyntax_HandleInResult_Response",
"test.protocols/WithErrorSyntax_HandleInResult_Result",
"test.protocols/WithErrorSyntaxHandleInResultTopResponse",
"test.protocols/WithErrorSyntax_ErrorAsPrimitive_Response",
"test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result",
"test.protocols/WithErrorSyntaxErrorAsPrimitiveTopResponse",
"test.protocols/WithErrorSyntax_ErrorAsEnum_Response",
"test.protocols/WithAndWithoutRequestResponseWithRequestWithResponseTopResponse",
"test.protocols/WithAndWithoutRequestResponseWithRequestWithResponseRequest",
"test.protocols/WithAndWithoutRequestResponseWithRequestNoResponseRequest",
"test.protocols/WithAndWithoutRequestResponseWithRequestEmptyResponseRequest",
"test.protocols/WithAndWithoutRequestResponseOnWithResponseRequest",
"test.protocols/WithAndWithoutRequestResponseNoRequestWithResponseTopResponse",
"test.protocols/WithAndWithoutRequestResponse",
"test.protocols/TransitionalRequestTopResponse",
"test.protocols/TransitionalRequestRequest",
"test.protocols/TransitionalOneWayRequest",
"test.protocols/TransitionalEventRequest",
"test.protocols/Transitional",
"test.protocols/TheUnion",
"test.protocols/MethodWithUnionUnionMethodRequest",
"test.protocols/SyscallProtocolMethodCRequest",
"test.protocols/SyscallProtocol",
"test.protocols/ProtocolEnds",
"test.protocols/WithProtocolEndsStructContainingEndsTopResponse",
"test.protocols/WithProtocolEndsStructContainingEndsRequest",
"test.protocols/WithProtocolEnds",
"test.protocols/MethodWithUnionUnionMethodTopResponse",
"test.protocols/MethodWithUnion",
"test.protocols/ManyParametersFifteenRequest",
"test.protocols/ManyParameters",
"test.protocols/HandleRightsProtocolResponseMethodTopResponse",
"test.protocols/HandleRightsProtocolResponseMethodRequest",
"test.protocols/HandleRightsProtocolNoResponseMethodRequest",
"test.protocols/HandleRightsProtocolAnEventRequest",
"test.protocols/HandleRightsProtocol",
"test.protocols/ErrorEnum",
"test.protocols/WithErrorSyntax_ErrorAsEnum_Result",
"test.protocols/WithErrorSyntaxErrorAsEnumTopResponse",
"test.protocols/WithErrorSyntax",
"test.protocols/DiscoverableProtocol",
"test.protocols/ChannelProtocolTakeHandleRequest",
"test.protocols/ChannelProtocolMutateSocketTopResponse",
"test.protocols/ChannelProtocolMutateSocketRequest",
"test.protocols/ChannelProtocolMethodBTopResponse",
"test.protocols/ChannelProtocolMethodBRequest",
"test.protocols/ChannelProtocolMethodARequest",
"test.protocols/ChannelProtocolEventARequest",
"test.protocols/ChannelProtocol",
"test.protocols/AnotherDiscoverableProtocol"
],
"declarations": {
"test.protocols/ErrorEnum": "enum",
"test.protocols/AnotherDiscoverableProtocol": "protocol",
"test.protocols/ChannelProtocol": "protocol",
"test.protocols/DiscoverableProtocol": "protocol",
"test.protocols/HandleRightsProtocol": "protocol",
"test.protocols/ManyParameters": "protocol",
"test.protocols/MethodWithUnion": "protocol",
"test.protocols/SyscallProtocol": "protocol",
"test.protocols/Transitional": "protocol",
"test.protocols/WithAndWithoutRequestResponse": "protocol",
"test.protocols/WithErrorSyntax": "protocol",
"test.protocols/WithProtocolEnds": "protocol",
"test.protocols/ChannelProtocolEventARequest": "struct",
"test.protocols/ChannelProtocolMethodARequest": "struct",
"test.protocols/ChannelProtocolMethodBRequest": "struct",
"test.protocols/ChannelProtocolMethodBTopResponse": "struct",
"test.protocols/ChannelProtocolMutateSocketRequest": "struct",
"test.protocols/ChannelProtocolMutateSocketTopResponse": "struct",
"test.protocols/ChannelProtocolTakeHandleRequest": "struct",
"test.protocols/HandleRightsProtocolAnEventRequest": "struct",
"test.protocols/HandleRightsProtocolNoResponseMethodRequest": "struct",
"test.protocols/HandleRightsProtocolResponseMethodRequest": "struct",
"test.protocols/HandleRightsProtocolResponseMethodTopResponse": "struct",
"test.protocols/ManyParametersFifteenRequest": "struct",
"test.protocols/MethodWithUnionUnionMethodRequest": "struct",
"test.protocols/MethodWithUnionUnionMethodTopResponse": "struct",
"test.protocols/ProtocolEnds": "struct",
"test.protocols/SyscallProtocolMethodCRequest": "struct",
"test.protocols/TransitionalEventRequest": "struct",
"test.protocols/TransitionalOneWayRequest": "struct",
"test.protocols/TransitionalRequestRequest": "struct",
"test.protocols/TransitionalRequestTopResponse": "struct",
"test.protocols/WithAndWithoutRequestResponseNoRequestWithResponseTopResponse": "struct",
"test.protocols/WithAndWithoutRequestResponseOnWithResponseRequest": "struct",
"test.protocols/WithAndWithoutRequestResponseWithRequestEmptyResponseRequest": "struct",
"test.protocols/WithAndWithoutRequestResponseWithRequestNoResponseRequest": "struct",
"test.protocols/WithAndWithoutRequestResponseWithRequestWithResponseRequest": "struct",
"test.protocols/WithAndWithoutRequestResponseWithRequestWithResponseTopResponse": "struct",
"test.protocols/WithErrorSyntaxErrorAsEnumTopResponse": "struct",
"test.protocols/WithErrorSyntaxErrorAsPrimitiveTopResponse": "struct",
"test.protocols/WithErrorSyntaxHandleInResultTopResponse": "struct",
"test.protocols/WithErrorSyntaxResponseAsStructTopResponse": "struct",
"test.protocols/WithErrorSyntax_ErrorAsEnum_Response": "struct",
"test.protocols/WithErrorSyntax_ErrorAsPrimitive_Response": "struct",
"test.protocols/WithErrorSyntax_HandleInResult_Response": "struct",
"test.protocols/WithErrorSyntax_ResponseAsStruct_Response": "struct",
"test.protocols/WithProtocolEndsClientEndsRequest": "struct",
"test.protocols/WithProtocolEndsClientEndsTopResponse": "struct",
"test.protocols/WithProtocolEndsServerEndsRequest": "struct",
"test.protocols/WithProtocolEndsServerEndsTopResponse": "struct",
"test.protocols/WithProtocolEndsStructContainingEndsRequest": "struct",
"test.protocols/WithProtocolEndsStructContainingEndsTopResponse": "struct",
"test.protocols/TheUnion": "union",
"test.protocols/WithErrorSyntax_ErrorAsEnum_Result": "union",
"test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result": "union",
"test.protocols/WithErrorSyntax_HandleInResult_Result": "union",
"test.protocols/WithErrorSyntax_ResponseAsStruct_Result": "union"
}
}