blob: cfe45334182966879055a51b19c580eed8d17053 [file] [log] [blame]
{
"version": "0.0.1",
"name": "fidl.test.protocols",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [
{
"name": "fidl.test.protocols/obj_type",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 6,
"column": 6,
"length": 8
},
"type": "uint32",
"members": [
{
"name": "NONE",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 7,
"column": 5,
"length": 4
},
"value": {
"kind": "literal",
"value": "0",
"expression": "0",
"literal": {
"kind": "numeric",
"value": "0",
"expression": "0"
}
}
},
{
"name": "SOCKET",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 8,
"column": 5,
"length": 6
},
"value": {
"kind": "literal",
"value": "14",
"expression": "14",
"literal": {
"kind": "numeric",
"value": "14",
"expression": "14"
}
}
}
],
"strict": true
},
{
"name": "fidl.test.protocols/ErrorEnun",
"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": [
{
"name": "fidl.test.protocols/handle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 11,
"column": 21,
"length": 6
},
"type": {
"kind": "primitive",
"subtype": "uint32"
},
"properties": [
{
"name": "subtype",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 13,
"column": 18,
"length": 7
},
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/obj_type",
"nullable": false
}
}
]
}
],
"interface_declarations": [
{
"name": "fidl.test.protocols/WithAndWithoutRequestResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 17,
"column": 10,
"length": 29
},
"methods": [
{
"ordinal": 7699066378708085668,
"name": "NoRequestNoResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 18,
"column": 5,
"length": 19
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": false,
"is_composed": false
},
{
"ordinal": 4641225961522096302,
"name": "NoRequestEmptyResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 19,
"column": 5,
"length": 22
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [],
"maybe_response_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 4935493674668456948,
"name": "NoRequestWithResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 20,
"column": 5,
"length": 21
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 20,
"column": 40,
"length": 3
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix4",
"maybe_response_type_shape_v1": {
"inline_size": 32,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 8985942600963248509,
"name": "WithRequestNoResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 21,
"column": 5,
"length": 21
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 21,
"column": 34,
"length": 3
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_request_payload": "fidl.test.protocols/SomeLongAnonymousPrefix5",
"maybe_request_type_shape_v1": {
"inline_size": 32,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false
},
"has_response": false,
"is_composed": false
},
{
"ordinal": 7344052883704365182,
"name": "WithRequestEmptyResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 22,
"column": 5,
"length": 24
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 22,
"column": 37,
"length": 3
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_request_payload": "fidl.test.protocols/SomeLongAnonymousPrefix6",
"maybe_request_type_shape_v1": {
"inline_size": 32,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [],
"maybe_response_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 2103802322332450033,
"name": "WithRequestWithResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 23,
"column": 5,
"length": 23
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 23,
"column": 36,
"length": 3
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_request_payload": "fidl.test.protocols/SomeLongAnonymousPrefix8",
"maybe_request_type_shape_v1": {
"inline_size": 32,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 23,
"column": 52,
"length": 3
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix9",
"maybe_response_type_shape_v1": {
"inline_size": 32,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 1323081535741489193,
"name": "OnEmptyResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 24,
"column": 8,
"length": 15
},
"has_request": false,
"has_response": true,
"maybe_response": [],
"maybe_response_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 1691906546593908418,
"name": "OnWithResponse",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 25,
"column": 8,
"length": 14
},
"has_request": false,
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 25,
"column": 30,
"length": 3
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix11",
"maybe_response_type_shape_v1": {
"inline_size": 32,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false
},
"is_composed": false
}
]
},
{
"name": "fidl.test.protocols/WithErrorSyntax",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 33,
"column": 10,
"length": 15
},
"methods": [
{
"ordinal": 4000554951765344912,
"name": "ResponseAsStruct",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 5,
"length": 16
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/WithErrorSyntax_ResponseAsStruct_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 3,
"column": 1,
"length": 6
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix13",
"maybe_response_type_shape_v1": {
"inline_size": 40,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 3421672554503271630,
"name": "ErrorAsPrimitive",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 35,
"column": 5,
"length": 16
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 6,
"column": 1,
"length": 6
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix15",
"maybe_response_type_shape_v1": {
"inline_size": 40,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 627496610701472780,
"name": "ErrorAsEnum",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 36,
"column": 5,
"length": 11
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/WithErrorSyntax_ErrorAsEnum_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 9,
"column": 1,
"length": 6
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix17",
"maybe_response_type_shape_v1": {
"inline_size": 40,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": false
},
"is_composed": false
}
]
},
{
"name": "fidl.test.protocols/ChannelProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 40,
"column": 10,
"length": 15
},
"maybe_attributes": [
{
"name": "Transport",
"value": "Channel"
}
],
"methods": [
{
"ordinal": 565531679656837166,
"name": "MethodA",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 5,
"length": 7
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 19,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 28,
"length": 1
},
"field_shape_v1": {
"offset": 24,
"padding": 0
}
}
],
"maybe_request_payload": "fidl.test.protocols/SomeLongAnonymousPrefix18",
"maybe_request_type_shape_v1": {
"inline_size": 32,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": false,
"is_composed": false
},
{
"ordinal": 5963604044179602938,
"name": "EventA",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 42,
"column": 8,
"length": 6
},
"has_request": false,
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 42,
"column": 21,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 42,
"column": 30,
"length": 1
},
"field_shape_v1": {
"offset": 24,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix19",
"maybe_response_type_shape_v1": {
"inline_size": 32,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 6746905632127147242,
"name": "MethodB",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 43,
"column": 5,
"length": 7
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 43,
"column": 19,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 43,
"column": 28,
"length": 1
},
"field_shape_v1": {
"offset": 24,
"padding": 0
}
}
],
"maybe_request_payload": "fidl.test.protocols/SomeLongAnonymousPrefix20",
"maybe_request_type_shape_v1": {
"inline_size": 32,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "result",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 43,
"column": 41,
"length": 6
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix21",
"maybe_response_type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 875219241480379432,
"name": "TakeHandle",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 44,
"column": 5,
"length": 10
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "handle",
"obj_type": 0,
"subtype": "handle",
"rights": 2147483648,
"nullable": false
},
"name": "h",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 44,
"column": 23,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 4
}
}
],
"maybe_request_payload": "fidl.test.protocols/SomeLongAnonymousPrefix22",
"maybe_request_type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [],
"maybe_response_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 9065806117349865322,
"name": "MutateSocket",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 45,
"column": 5,
"length": 12
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 2147483648,
"nullable": false
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 45,
"column": 32,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 4
}
}
],
"maybe_request_payload": "fidl.test.protocols/SomeLongAnonymousPrefix24",
"maybe_request_type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 2147483648,
"nullable": false
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 45,
"column": 53,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 4
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix25",
"maybe_response_type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
},
"is_composed": false
}
]
},
{
"name": "fidl.test.protocols/Transitional",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 48,
"column": 10,
"length": 12
},
"methods": [
{
"ordinal": 7121112290509197032,
"name": "Request",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 50,
"column": 5,
"length": 7
},
"has_request": true,
"maybe_attributes": [
{
"name": "Transitional",
"value": ""
}
],
"maybe_request": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 50,
"column": 19,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_request_payload": "fidl.test.protocols/SomeLongAnonymousPrefix26",
"maybe_request_type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "y",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 50,
"column": 32,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix27",
"maybe_response_type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"is_composed": false
},
{
"ordinal": 1124136612964114085,
"name": "OneWay",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 53,
"column": 5,
"length": 6
},
"has_request": true,
"maybe_attributes": [
{
"name": "Transitional",
"value": ""
}
],
"maybe_request": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 53,
"column": 18,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_request_payload": "fidl.test.protocols/SomeLongAnonymousPrefix28",
"maybe_request_type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": false,
"is_composed": false
},
{
"ordinal": 6033576734966581606,
"name": "Event",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 56,
"column": 8,
"length": 5
},
"has_request": false,
"maybe_attributes": [
{
"name": "Transitional",
"value": ""
}
],
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 56,
"column": 20,
"length": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.protocols/SomeLongAnonymousPrefix29",
"maybe_response_type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"is_composed": false
}
]
},
{
"name": "fidl.test.protocols/DiscoverableProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 60,
"column": 10,
"length": 20
},
"maybe_attributes": [
{
"name": "Discoverable",
"value": ""
}
],
"methods": [
{
"ordinal": 16177161678225767,
"name": "Method",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 61,
"column": 5,
"length": 6
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
},
"has_response": false,
"is_composed": false
}
]
}
],
"service_declarations": [],
"struct_declarations": [
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix4",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 20,
"column": 32,
"length": 12
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 20,
"column": 40,
"length": 3
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix5",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 21,
"column": 26,
"length": 12
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 21,
"column": 34,
"length": 3
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix6",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 22,
"column": 29,
"length": 12
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 22,
"column": 37,
"length": 3
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix8",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 23,
"column": 28,
"length": 12
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 23,
"column": 36,
"length": 3
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix9",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 23,
"column": 44,
"length": 12
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 23,
"column": 52,
"length": 3
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix11",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 25,
"column": 22,
"length": 12
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 25,
"column": 30,
"length": 3
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/WithErrorSyntax_ResponseAsStruct_Response",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 27,
"length": 27
},
"anonymous": false,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 34,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 43,
"length": 1
},
"field_shape_v1": {
"offset": 8,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "c",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 52,
"length": 1
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix13",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 27,
"length": 27
},
"anonymous": true,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/WithErrorSyntax_ResponseAsStruct_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 3,
"column": 1,
"length": 6
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/WithErrorSyntax_ErrorAsPrimitive_Response",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 35,
"column": 27,
"length": 2
},
"anonymous": false,
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix15",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 35,
"column": 27,
"length": 2
},
"anonymous": true,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 6,
"column": 1,
"length": 6
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/WithErrorSyntax_ErrorAsEnum_Response",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 36,
"column": 22,
"length": 2
},
"anonymous": false,
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix17",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 36,
"column": 22,
"length": 2
},
"anonymous": true,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/WithErrorSyntax_ErrorAsEnum_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 9,
"column": 1,
"length": 6
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix18",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 12,
"length": 18
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 19,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 41,
"column": 28,
"length": 1
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix19",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 42,
"column": 14,
"length": 18
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 42,
"column": 21,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 42,
"column": 30,
"length": 1
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix20",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 43,
"column": 12,
"length": 18
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 43,
"column": 19,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 43,
"column": 28,
"length": 1
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix21",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 43,
"column": 34,
"length": 14
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "result",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 43,
"column": 41,
"length": 6
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix22",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 44,
"column": 15,
"length": 10
},
"anonymous": true,
"members": [
{
"type": {
"kind": "handle",
"obj_type": 0,
"subtype": "handle",
"rights": 2147483648,
"nullable": false
},
"name": "h",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 44,
"column": 23,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 4
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix24",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 45,
"column": 17,
"length": 17
},
"anonymous": true,
"members": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 2147483648,
"nullable": false
},
"name": "a",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 45,
"column": 32,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 4
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix25",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 45,
"column": 38,
"length": 17
},
"anonymous": true,
"members": [
{
"type": {
"kind": "handle",
"obj_type": 14,
"subtype": "socket",
"rights": 2147483648,
"nullable": false
},
"name": "b",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 45,
"column": 53,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 4
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix26",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 50,
"column": 12,
"length": 9
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 50,
"column": 19,
"length": 1
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix27",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 50,
"column": 25,
"length": 9
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "y",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 50,
"column": 32,
"length": 1
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix28",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 53,
"column": 11,
"length": 9
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 53,
"column": 18,
"length": 1
},
"field_shape_v1": {
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/SomeLongAnonymousPrefix29",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 56,
"column": 13,
"length": 9
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 56,
"column": 20,
"length": 1
},
"field_shape_v1": {
"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_flexible_envelope": false
}
}
],
"table_declarations": [],
"union_declarations": [
{
"name": "fidl.test.protocols/WithErrorSyntax_ResponseAsStruct_Result",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 34,
"column": 27,
"length": 27
},
"maybe_attributes": [
{
"name": "Result",
"value": ""
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/WithErrorSyntax_ResponseAsStruct_Response",
"nullable": false
},
"location": {
"filename": "generated",
"line": 1,
"column": 1,
"length": 8
}
},
{
"ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "primitive",
"subtype": "uint32"
},
"location": {
"filename": "generated",
"line": 2,
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 35,
"column": 27,
"length": 2
},
"maybe_attributes": [
{
"name": "Result",
"value": ""
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/WithErrorSyntax_ErrorAsPrimitive_Response",
"nullable": false
},
"location": {
"filename": "generated",
"line": 4,
"column": 1,
"length": 8
}
},
{
"ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "primitive",
"subtype": "uint32"
},
"location": {
"filename": "generated",
"line": 5,
"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_flexible_envelope": false
}
},
{
"name": "fidl.test.protocols/WithErrorSyntax_ErrorAsEnum_Result",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/protocols.test.fidl",
"line": 36,
"column": 22,
"length": 2
},
"maybe_attributes": [
{
"name": "Result",
"value": ""
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/WithErrorSyntax_ErrorAsEnum_Response",
"nullable": false
},
"location": {
"filename": "generated",
"line": 7,
"column": 1,
"length": 8
}
},
{
"ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "identifier",
"identifier": "fidl.test.protocols/ErrorEnun",
"nullable": 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_flexible_envelope": false
}
}
],
"type_alias_declarations": [],
"declaration_order": [
"fidl.test.protocols/obj_type",
"fidl.test.protocols/handle",
"fidl.test.protocols/WithErrorSyntax_ResponseAsStruct_Response",
"fidl.test.protocols/WithErrorSyntax_ResponseAsStruct_Result",
"fidl.test.protocols/WithErrorSyntax_ErrorAsPrimitive_Response",
"fidl.test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result",
"fidl.test.protocols/WithErrorSyntax_ErrorAsEnum_Response",
"fidl.test.protocols/DiscoverableProtocol",
"fidl.test.protocols/Transitional",
"fidl.test.protocols/ChannelProtocol",
"fidl.test.protocols/WithAndWithoutRequestResponse",
"fidl.test.protocols/ErrorEnun",
"fidl.test.protocols/WithErrorSyntax_ErrorAsEnum_Result",
"fidl.test.protocols/WithErrorSyntax"
],
"declarations": {
"fidl.test.protocols/obj_type": "enum",
"fidl.test.protocols/ErrorEnun": "enum",
"fidl.test.protocols/handle": "experimental_resource",
"fidl.test.protocols/WithAndWithoutRequestResponse": "interface",
"fidl.test.protocols/WithErrorSyntax": "interface",
"fidl.test.protocols/ChannelProtocol": "interface",
"fidl.test.protocols/Transitional": "interface",
"fidl.test.protocols/DiscoverableProtocol": "interface",
"fidl.test.protocols/SomeLongAnonymousPrefix0": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix1": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix2": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix3": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix4": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix5": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix6": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix7": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix8": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix9": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix10": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix11": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix12": "struct",
"fidl.test.protocols/WithErrorSyntax_ResponseAsStruct_Response": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix13": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix14": "struct",
"fidl.test.protocols/WithErrorSyntax_ErrorAsPrimitive_Response": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix15": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix16": "struct",
"fidl.test.protocols/WithErrorSyntax_ErrorAsEnum_Response": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix17": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix18": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix19": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix20": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix21": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix22": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix23": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix24": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix25": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix26": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix27": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix28": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix29": "struct",
"fidl.test.protocols/SomeLongAnonymousPrefix30": "struct",
"fidl.test.protocols/WithErrorSyntax_ResponseAsStruct_Result": "union",
"fidl.test.protocols/WithErrorSyntax_ErrorAsPrimitive_Result": "union",
"fidl.test.protocols/WithErrorSyntax_ErrorAsEnum_Result": "union"
}
}