blob: dc992a602ad9754d5cd1cdba5d9c565aac5d078c [file] [log] [blame]
{
"version": "0.0.1",
"name": "test.name",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [
{
"name": "test.name/ErrorEnun",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 14,
"column": 6
},
"type": "uint32",
"members": [
{
"name": "ERR_FOO",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 15,
"column": 5
},
"value": {
"kind": "literal",
"value": "1",
"expression": "1",
"literal": {
"kind": "numeric",
"value": "1",
"expression": "1"
}
}
},
{
"name": "ERR_BAR",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 16,
"column": 5
},
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
}
}
],
"strict": true
}
],
"interface_declarations": [
{
"name": "test.name/WithAndWithoutRequestResponse",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 3,
"column": 10
},
"methods": [
{
"ordinal": 2162845427462832128,
"generated_ordinal": 257584335957785512,
"name": "NoRequestNoResponse",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 4,
"column": 5
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
},
"has_response": false,
"is_composed": false
},
{
"ordinal": 5617919293065789440,
"generated_ordinal": 8101632395109729785,
"name": "NoRequestEmptyResponse",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 5,
"column": 5
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
},
"has_response": 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,
"contains_union": false
},
"is_composed": false
},
{
"ordinal": 461856421957337088,
"generated_ordinal": 5054636755429784136,
"name": "NoRequestWithResponse",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 6,
"column": 5
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 6,
"column": 40
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 16
}
],
"maybe_response_payload": "test.name/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,
"contains_union": false
},
"is_composed": false
},
{
"ordinal": 1856067372482297856,
"generated_ordinal": 5108499630221504549,
"name": "WithRequestNoResponse",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 7,
"column": 5
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 7,
"column": 34
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 16
}
],
"maybe_request_payload": "test.name/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,
"contains_union": false
},
"has_response": false,
"is_composed": false
},
{
"ordinal": 8570976206923497472,
"generated_ordinal": 108302452954061159,
"name": "WithRequestEmptyResponse",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 8,
"column": 5
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 8,
"column": 37
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 16
}
],
"maybe_request_payload": "test.name/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,
"contains_union": 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,
"contains_union": false
},
"is_composed": false
},
{
"ordinal": 1833854690685616128,
"generated_ordinal": 383797738148261568,
"name": "WithRequestWithResponse",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 9,
"column": 5
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 9,
"column": 36
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 16
}
],
"maybe_request_payload": "test.name/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,
"contains_union": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 9,
"column": 52
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 16
}
],
"maybe_response_payload": "test.name/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,
"contains_union": false
},
"is_composed": false
},
{
"ordinal": 7602031305773023232,
"generated_ordinal": 301337558307652787,
"name": "OnEmptyResponse",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 10,
"column": 8
},
"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,
"contains_union": false
},
"is_composed": false
},
{
"ordinal": 8811031017247735808,
"generated_ordinal": 3069035692499413769,
"name": "OnWithResponse",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 11,
"column": 8
},
"has_request": false,
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 11,
"column": 30
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 16
}
],
"maybe_response_payload": "test.name/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,
"contains_union": false
},
"is_composed": false
}
]
},
{
"name": "test.name/WithErrorSyntax",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 19,
"column": 10
},
"methods": [
{
"ordinal": 5709494219224121344,
"generated_ordinal": 6422511116044938191,
"name": "ResponseAsStruct",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 20,
"column": 5
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "identifier",
"identifier": "test.name/WithErrorSyntax_ResponseAsStruct_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 18,
"column": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 32
}
],
"maybe_response_payload": "test.name/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,
"contains_union": true
},
"is_composed": false
},
{
"ordinal": 8887872801126481920,
"generated_ordinal": 2364249812017832126,
"name": "ErrorAsPrimitive",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 21,
"column": 5
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "identifier",
"identifier": "test.name/WithErrorSyntax_ErrorAsPrimitive_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 25,
"column": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 8
}
],
"maybe_response_payload": "test.name/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,
"contains_union": true
},
"is_composed": false
},
{
"ordinal": 5518561143137763328,
"generated_ordinal": 4597390537870356095,
"name": "ErrorAsEnum",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 22,
"column": 5
},
"has_request": true,
"maybe_request": [],
"maybe_request_type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "identifier",
"identifier": "test.name/WithErrorSyntax_ErrorAsEnum_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 32,
"column": 1
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 8
}
],
"maybe_response_payload": "test.name/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,
"contains_union": true
},
"is_composed": false
}
]
},
{
"name": "test.name/ChannelProtocol",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 26,
"column": 10
},
"maybe_attributes": [
{
"name": "Transport",
"value": "Channel"
}
],
"methods": [
{
"ordinal": 6153768471000776704,
"generated_ordinal": 1954005452660588540,
"name": "MethodA",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 27,
"column": 5
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 27,
"column": 19
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 8
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 27,
"column": 28
},
"field_shape_v1": {
"offset": 24,
"padding": 0
},
"size": 8
}
],
"maybe_request_payload": "test.name/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,
"contains_union": false
},
"has_response": false,
"is_composed": false
},
{
"ordinal": 2051602944112984064,
"generated_ordinal": 2691096518916888736,
"name": "EventA",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 28,
"column": 8
},
"has_request": false,
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 28,
"column": 21
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 8
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 28,
"column": 30
},
"field_shape_v1": {
"offset": 24,
"padding": 0
},
"size": 8
}
],
"maybe_response_payload": "test.name/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,
"contains_union": false
},
"is_composed": false
},
{
"ordinal": 776401560220467200,
"generated_ordinal": 6751311874614576291,
"name": "MethodB",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 29,
"column": 5
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 29,
"column": 19
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 8
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 29,
"column": 28
},
"field_shape_v1": {
"offset": 24,
"padding": 0
},
"size": 8
}
],
"maybe_request_payload": "test.name/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,
"contains_union": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "result",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 29,
"column": 41
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 8
}
],
"maybe_response_payload": "test.name/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,
"contains_union": false
},
"is_composed": false
},
{
"ordinal": 5405131567951511552,
"generated_ordinal": 3948151641640179063,
"name": "MutateSocket",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 30,
"column": 5
},
"has_request": true,
"maybe_request": [
{
"type": {
"kind": "handle",
"subtype": "socket",
"required_rights": 0,
"optional_rights": 4294967295,
"nullable": false
},
"name": "a",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 30,
"column": 33
},
"field_shape_v1": {
"offset": 16,
"padding": 4
},
"size": 4
}
],
"maybe_request_payload": "test.name/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,
"contains_union": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "handle",
"subtype": "socket",
"required_rights": 0,
"optional_rights": 4294967295,
"nullable": false
},
"name": "b",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 30,
"column": 55
},
"field_shape_v1": {
"offset": 16,
"padding": 4
},
"size": 4
}
],
"maybe_response_payload": "test.name/SomeLongAnonymousPrefix23",
"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,
"contains_union": false
},
"is_composed": false
}
]
}
],
"service_declarations": [],
"struct_declarations": [
{
"name": "test.name/SomeLongAnonymousPrefix4",
"location": {
"filename": "generated",
"line": 5,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 6,
"column": 40
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 16
}
],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix5",
"location": {
"filename": "generated",
"line": 6,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 7,
"column": 34
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 16
}
],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix6",
"location": {
"filename": "generated",
"line": 7,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 8,
"column": 37
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 16
}
],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix8",
"location": {
"filename": "generated",
"line": 9,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "arg",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 9,
"column": 36
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 16
}
],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix9",
"location": {
"filename": "generated",
"line": 10,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 9,
"column": 52
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 16
}
],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix11",
"location": {
"filename": "generated",
"line": 12,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "string",
"nullable": false
},
"name": "ret",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 11,
"column": 30
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 16
}
],
"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,
"contains_union": false
}
},
{
"name": "test.name/WithErrorSyntax_ResponseAsStruct_Response",
"location": {
"filename": "generated",
"line": 14,
"column": 1
},
"anonymous": false,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 20,
"column": 34
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 8
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 20,
"column": 43
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"size": 8
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "c",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 20,
"column": 52
},
"field_shape_v1": {
"offset": 16,
"padding": 0
},
"size": 8
}
],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix13",
"location": {
"filename": "generated",
"line": 19,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.name/WithErrorSyntax_ResponseAsStruct_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 18,
"column": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 32
}
],
"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,
"contains_union": true
}
},
{
"name": "test.name/WithErrorSyntax_ErrorAsPrimitive_Response",
"location": {
"filename": "generated",
"line": 21,
"column": 1
},
"anonymous": false,
"members": [],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix15",
"location": {
"filename": "generated",
"line": 26,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.name/WithErrorSyntax_ErrorAsPrimitive_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 25,
"column": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 8
}
],
"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,
"contains_union": true
}
},
{
"name": "test.name/WithErrorSyntax_ErrorAsEnum_Response",
"location": {
"filename": "generated",
"line": 28,
"column": 1
},
"anonymous": false,
"members": [],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix17",
"location": {
"filename": "generated",
"line": 33,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.name/WithErrorSyntax_ErrorAsEnum_Result",
"nullable": false
},
"name": "result",
"location": {
"filename": "generated",
"line": 32,
"column": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 8
}
],
"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,
"contains_union": true
}
},
{
"name": "test.name/SomeLongAnonymousPrefix18",
"location": {
"filename": "generated",
"line": 34,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 27,
"column": 19
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 8
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 27,
"column": 28
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"size": 8
}
],
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix19",
"location": {
"filename": "generated",
"line": 35,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 28,
"column": 21
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 8
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 28,
"column": 30
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"size": 8
}
],
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix20",
"location": {
"filename": "generated",
"line": 36,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "a",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 29,
"column": 19
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 8
},
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "b",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 29,
"column": 28
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"size": 8
}
],
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix21",
"location": {
"filename": "generated",
"line": 37,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64"
},
"name": "result",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 29,
"column": 41
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"size": 8
}
],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix22",
"location": {
"filename": "generated",
"line": 38,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "handle",
"subtype": "socket",
"nullable": false
},
"name": "a",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 30,
"column": 33
},
"field_shape_v1": {
"offset": 0,
"padding": 4
},
"size": 4
}
],
"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,
"contains_union": false
}
},
{
"name": "test.name/SomeLongAnonymousPrefix23",
"location": {
"filename": "generated",
"line": 39,
"column": 1
},
"anonymous": true,
"members": [
{
"type": {
"kind": "handle",
"subtype": "socket",
"nullable": false
},
"name": "b",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl",
"line": 30,
"column": 55
},
"field_shape_v1": {
"offset": 0,
"padding": 4
},
"size": 4
}
],
"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,
"contains_union": false
}
}
],
"table_declarations": [],
"union_declarations": [
{
"name": "test.name/WithErrorSyntax_ResponseAsStruct_Result",
"location": {
"filename": "generated",
"line": 15,
"column": 1
},
"maybe_attributes": [
{
"name": "Result",
"value": ""
}
],
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "test.name/WithErrorSyntax_ResponseAsStruct_Response",
"nullable": false
},
"location": {
"filename": "generated",
"line": 16,
"column": 1
},
"size": 24,
"offset": 8
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "primitive",
"subtype": "uint32"
},
"location": {
"filename": "generated",
"line": 17,
"column": 1
},
"size": 4,
"offset": 8
}
],
"strict": true,
"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,
"contains_union": true
}
},
{
"name": "test.name/WithErrorSyntax_ErrorAsPrimitive_Result",
"location": {
"filename": "generated",
"line": 22,
"column": 1
},
"maybe_attributes": [
{
"name": "Result",
"value": ""
}
],
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "test.name/WithErrorSyntax_ErrorAsPrimitive_Response",
"nullable": false
},
"location": {
"filename": "generated",
"line": 23,
"column": 1
},
"size": 1,
"offset": 4
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "primitive",
"subtype": "uint32"
},
"location": {
"filename": "generated",
"line": 24,
"column": 1
},
"size": 4,
"offset": 4
}
],
"strict": true,
"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,
"contains_union": true
}
},
{
"name": "test.name/WithErrorSyntax_ErrorAsEnum_Result",
"location": {
"filename": "generated",
"line": 29,
"column": 1
},
"maybe_attributes": [
{
"name": "Result",
"value": ""
}
],
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "response",
"type": {
"kind": "identifier",
"identifier": "test.name/WithErrorSyntax_ErrorAsEnum_Response",
"nullable": false
},
"location": {
"filename": "generated",
"line": 30,
"column": 1
},
"size": 1,
"offset": 4
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "err",
"type": {
"kind": "identifier",
"identifier": "test.name/ErrorEnun",
"nullable": false
},
"location": {
"filename": "generated",
"line": 31,
"column": 1
},
"size": 4,
"offset": 4
}
],
"strict": true,
"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,
"contains_union": true
}
}
],
"xunion_declarations": [],
"type_alias_declarations": [],
"declaration_order": [
"test.name/WithErrorSyntax_ResponseAsStruct_Response",
"test.name/WithErrorSyntax_ResponseAsStruct_Result",
"test.name/WithErrorSyntax_ErrorAsPrimitive_Response",
"test.name/WithErrorSyntax_ErrorAsPrimitive_Result",
"test.name/WithErrorSyntax_ErrorAsEnum_Response",
"test.name/ChannelProtocol",
"test.name/WithAndWithoutRequestResponse",
"test.name/ErrorEnun",
"test.name/WithErrorSyntax_ErrorAsEnum_Result",
"test.name/WithErrorSyntax"
],
"declarations": {
"test.name/ErrorEnun": "enum",
"test.name/WithAndWithoutRequestResponse": "interface",
"test.name/WithErrorSyntax": "interface",
"test.name/ChannelProtocol": "interface",
"test.name/SomeLongAnonymousPrefix0": "struct",
"test.name/SomeLongAnonymousPrefix1": "struct",
"test.name/SomeLongAnonymousPrefix2": "struct",
"test.name/SomeLongAnonymousPrefix3": "struct",
"test.name/SomeLongAnonymousPrefix4": "struct",
"test.name/SomeLongAnonymousPrefix5": "struct",
"test.name/SomeLongAnonymousPrefix6": "struct",
"test.name/SomeLongAnonymousPrefix7": "struct",
"test.name/SomeLongAnonymousPrefix8": "struct",
"test.name/SomeLongAnonymousPrefix9": "struct",
"test.name/SomeLongAnonymousPrefix10": "struct",
"test.name/SomeLongAnonymousPrefix11": "struct",
"test.name/SomeLongAnonymousPrefix12": "struct",
"test.name/WithErrorSyntax_ResponseAsStruct_Response": "struct",
"test.name/SomeLongAnonymousPrefix13": "struct",
"test.name/SomeLongAnonymousPrefix14": "struct",
"test.name/WithErrorSyntax_ErrorAsPrimitive_Response": "struct",
"test.name/SomeLongAnonymousPrefix15": "struct",
"test.name/SomeLongAnonymousPrefix16": "struct",
"test.name/WithErrorSyntax_ErrorAsEnum_Response": "struct",
"test.name/SomeLongAnonymousPrefix17": "struct",
"test.name/SomeLongAnonymousPrefix18": "struct",
"test.name/SomeLongAnonymousPrefix19": "struct",
"test.name/SomeLongAnonymousPrefix20": "struct",
"test.name/SomeLongAnonymousPrefix21": "struct",
"test.name/SomeLongAnonymousPrefix22": "struct",
"test.name/SomeLongAnonymousPrefix23": "struct",
"test.name/WithErrorSyntax_ResponseAsStruct_Result": "union",
"test.name/WithErrorSyntax_ErrorAsPrimitive_Result": "union",
"test.name/WithErrorSyntax_ErrorAsEnum_Result": "union"
}
}