| { |
| "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", |
| "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", |
| "literal": { |
| "kind": "numeric", |
| "value": "2", |
| "expression": "2" |
| } |
| } |
| } |
| ], |
| "strict": false |
| } |
| ], |
| "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": 2162845427462832128, |
| "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_size": 16, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 5617919293065789440, |
| "generated_ordinal": 5617919293065789440, |
| "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_size": 16, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": true, |
| "maybe_response": [], |
| "maybe_response_size": 16, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": false, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 461856421957337088, |
| "generated_ordinal": 461856421957337088, |
| "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_size": 16, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": 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 |
| }, |
| "size": 16, |
| "max_out_of_line": 4294967295, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 32, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": true, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 1856067372482297856, |
| "generated_ordinal": 1856067372482297856, |
| "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 |
| }, |
| "size": 16, |
| "max_out_of_line": 4294967295, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_request_size": 32, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": true, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 8570976206923497472, |
| "generated_ordinal": 8570976206923497472, |
| "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 |
| }, |
| "size": 16, |
| "max_out_of_line": 4294967295, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_request_size": 32, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": true, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": true, |
| "maybe_response": [], |
| "maybe_response_size": 16, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": false, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 1833854690685616128, |
| "generated_ordinal": 1833854690685616128, |
| "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 |
| }, |
| "size": 16, |
| "max_out_of_line": 4294967295, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_request_size": 32, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": true, |
| "experimental_maybe_request_has_flexible_envelope": 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 |
| }, |
| "size": 16, |
| "max_out_of_line": 4294967295, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 32, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": true, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 7602031305773023232, |
| "generated_ordinal": 7602031305773023232, |
| "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_size": 16, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": false, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 8811031017247735808, |
| "generated_ordinal": 8811031017247735808, |
| "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 |
| }, |
| "size": 16, |
| "max_out_of_line": 4294967295, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 32, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": true, |
| "experimental_maybe_response_has_flexible_envelope": 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": 8887872801126481920, |
| "generated_ordinal": 8887872801126481920, |
| "name": "ErrorAsPrimitive", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 20, |
| "column": 5 |
| }, |
| "has_request": true, |
| "maybe_request": [], |
| "maybe_request_size": 16, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/WithErrorSyntax_ErrorAsPrimitive_Result", |
| "nullable": false |
| }, |
| "name": "result", |
| "location": { |
| "filename": "generated", |
| "line": 18, |
| "column": 1 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 24, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": true, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 5518561143137763328, |
| "generated_ordinal": 5518561143137763328, |
| "name": "ErrorAsEnum", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 21, |
| "column": 5 |
| }, |
| "has_request": true, |
| "maybe_request": [], |
| "maybe_request_size": 16, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/WithErrorSyntax_ErrorAsEnum_Result", |
| "nullable": false |
| }, |
| "name": "result", |
| "location": { |
| "filename": "generated", |
| "line": 25, |
| "column": 1 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 24, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": true, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| } |
| ] |
| }, |
| { |
| "name": "test.name/OvernetInternalProtocol", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 25, |
| "column": 10 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Transport", |
| "value": "OvernetInternal" |
| } |
| ], |
| "methods": [ |
| { |
| "ordinal": 8563384190802853888, |
| "generated_ordinal": 8563384190802853888, |
| "name": "MethodA", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 26, |
| "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": 26, |
| "column": 19 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 26, |
| "column": 28 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 24, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_request_size": 32, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 7499044836192813056, |
| "generated_ordinal": 7499044836192813056, |
| "name": "EventA", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 27, |
| "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": 27, |
| "column": 21 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 27, |
| "column": 30 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 24, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 32, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": false, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 4089388583297744896, |
| "generated_ordinal": 4089388583297744896, |
| "name": "MethodB", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 28, |
| "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": 28, |
| "column": 19 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 28, |
| "column": 28 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 24, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_request_size": 32, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": 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": 28, |
| "column": 41 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 24, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": false, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 7263654626640003072, |
| "generated_ordinal": 7263654626640003072, |
| "name": "MutateSocket", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 29, |
| "column": 5 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "nullable": false |
| }, |
| "name": "a", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 29, |
| "column": 33 |
| }, |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 16, |
| "max_handles": 1 |
| } |
| ], |
| "maybe_request_size": 24, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": true, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "nullable": false |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 29, |
| "column": 55 |
| }, |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 16, |
| "max_handles": 1 |
| } |
| ], |
| "maybe_response_size": 24, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": true, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| } |
| ] |
| }, |
| { |
| "name": "test.name/ChannelProtocol", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 33, |
| "column": 10 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Transport", |
| "value": "Channel" |
| } |
| ], |
| "methods": [ |
| { |
| "ordinal": 6153768471000776704, |
| "generated_ordinal": 6153768471000776704, |
| "name": "MethodA", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 34, |
| "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": 34, |
| "column": 19 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 34, |
| "column": 28 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 24, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_request_size": 32, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 2051602944112984064, |
| "generated_ordinal": 2051602944112984064, |
| "name": "EventA", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 35, |
| "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": 35, |
| "column": 21 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 35, |
| "column": 30 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 24, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 32, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": false, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 776401560220467200, |
| "generated_ordinal": 776401560220467200, |
| "name": "MethodB", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 36, |
| "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": 36, |
| "column": 19 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 36, |
| "column": 28 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 24, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_request_size": 32, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": 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": 36, |
| "column": 41 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 24, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": false, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 5405131567951511552, |
| "generated_ordinal": 5405131567951511552, |
| "name": "MutateSocket", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 37, |
| "column": 5 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "nullable": false |
| }, |
| "name": "a", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 37, |
| "column": 33 |
| }, |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 16, |
| "max_handles": 1 |
| } |
| ], |
| "maybe_request_size": 24, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": true, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "nullable": false |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 37, |
| "column": 55 |
| }, |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 16, |
| "max_handles": 1 |
| } |
| ], |
| "maybe_response_size": 24, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": true, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| } |
| ] |
| }, |
| { |
| "name": "test.name/KitchenSink", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 42, |
| "column": 10 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Transport", |
| "value": "Channel, OvernetInternal" |
| } |
| ], |
| "methods": [ |
| { |
| "ordinal": 1935215437834878976, |
| "generated_ordinal": 1935215437834878976, |
| "name": "MethodA", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 43, |
| "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": 43, |
| "column": 19 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 43, |
| "column": 28 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 24, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_request_size": 32, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 7711299530095853568, |
| "generated_ordinal": 7711299530095853568, |
| "name": "EventA", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 44, |
| "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": 44, |
| "column": 21 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 44, |
| "column": 30 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 24, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 32, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": false, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 8587742870188851200, |
| "generated_ordinal": 8587742870188851200, |
| "name": "MethodB", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 45, |
| "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": 45, |
| "column": 19 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 45, |
| "column": 28 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 24, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_request_size": 32, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": false, |
| "experimental_maybe_request_has_flexible_envelope": 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": 45, |
| "column": 41 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 16, |
| "max_handles": 0 |
| } |
| ], |
| "maybe_response_size": 24, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": false, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 497577415850065920, |
| "generated_ordinal": 497577415850065920, |
| "name": "MutateSocket", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 46, |
| "column": 5 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "nullable": false |
| }, |
| "name": "a", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 46, |
| "column": 33 |
| }, |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 16, |
| "max_handles": 1 |
| } |
| ], |
| "maybe_request_size": 24, |
| "maybe_request_alignment": 8, |
| "maybe_request_has_padding": true, |
| "experimental_maybe_request_has_flexible_envelope": false, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "nullable": false |
| }, |
| "name": "b", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/protocols.test.fidl", |
| "line": 46, |
| "column": 55 |
| }, |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 16, |
| "max_handles": 1 |
| } |
| ], |
| "maybe_response_size": 24, |
| "maybe_response_alignment": 8, |
| "maybe_response_has_padding": true, |
| "experimental_maybe_response_has_flexible_envelope": false, |
| "is_composed": false |
| } |
| ] |
| } |
| ], |
| "service_declarations": [], |
| "struct_declarations": [ |
| { |
| "name": "test.name/WithErrorSyntax_ErrorAsPrimitive_Response", |
| "location": { |
| "filename": "generated", |
| "line": 14, |
| "column": 1 |
| }, |
| "anonymous": false, |
| "members": [], |
| "size": 1, |
| "max_out_of_line": 0, |
| "alignment": 1, |
| "max_handles": 0, |
| "has_padding": false |
| }, |
| { |
| "name": "test.name/WithErrorSyntax_ErrorAsEnum_Response", |
| "location": { |
| "filename": "generated", |
| "line": 21, |
| "column": 1 |
| }, |
| "anonymous": false, |
| "members": [], |
| "size": 1, |
| "max_out_of_line": 0, |
| "alignment": 1, |
| "max_handles": 0, |
| "has_padding": false |
| } |
| ], |
| "table_declarations": [], |
| "union_declarations": [ |
| { |
| "name": "test.name/WithErrorSyntax_ErrorAsPrimitive_Result", |
| "location": { |
| "filename": "generated", |
| "line": 17, |
| "column": 1 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Result", |
| "value": "" |
| } |
| ], |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/WithErrorSyntax_ErrorAsPrimitive_Response", |
| "nullable": false |
| }, |
| "name": "response", |
| "location": { |
| "filename": "generated", |
| "line": 15, |
| "column": 1 |
| }, |
| "size": 1, |
| "max_out_of_line": 0, |
| "alignment": 1, |
| "offset": 4 |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "name": "err", |
| "location": { |
| "filename": "generated", |
| "line": 16, |
| "column": 1 |
| }, |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 4 |
| } |
| ], |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "max_handles": 0 |
| }, |
| { |
| "name": "test.name/WithErrorSyntax_ErrorAsEnum_Result", |
| "location": { |
| "filename": "generated", |
| "line": 24, |
| "column": 1 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Result", |
| "value": "" |
| } |
| ], |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/WithErrorSyntax_ErrorAsEnum_Response", |
| "nullable": false |
| }, |
| "name": "response", |
| "location": { |
| "filename": "generated", |
| "line": 22, |
| "column": 1 |
| }, |
| "size": 1, |
| "max_out_of_line": 0, |
| "alignment": 1, |
| "offset": 4 |
| }, |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/ErrorEnun", |
| "nullable": false |
| }, |
| "name": "err", |
| "location": { |
| "filename": "generated", |
| "line": 23, |
| "column": 1 |
| }, |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 4 |
| } |
| ], |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "max_handles": 0 |
| } |
| ], |
| "xunion_declarations": [], |
| "type_alias_declarations": [], |
| "declaration_order": [ |
| "test.name/WithErrorSyntax_ErrorAsPrimitive_Response", |
| "test.name/WithErrorSyntax_ErrorAsPrimitive_Result", |
| "test.name/WithErrorSyntax_ErrorAsEnum_Response", |
| "test.name/KitchenSink", |
| "test.name/ChannelProtocol", |
| "test.name/OvernetInternalProtocol", |
| "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/OvernetInternalProtocol": "interface", |
| "test.name/ChannelProtocol": "interface", |
| "test.name/KitchenSink": "interface", |
| "test.name/WithErrorSyntax_ErrorAsPrimitive_Response": "struct", |
| "test.name/WithErrorSyntax_ErrorAsEnum_Response": "struct", |
| "test.name/WithErrorSyntax_ErrorAsPrimitive_Result": "union", |
| "test.name/WithErrorSyntax_ErrorAsEnum_Result": "union" |
| } |
| } |