| { |
| "version": "0.0.1", |
| "name": "test.name", |
| "library_dependencies": [], |
| "bits_declarations": [], |
| "const_declarations": [], |
| "enum_declarations": [ |
| { |
| "name": "test.name/obj_type", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 6, |
| "column": 6, |
| "length": 8 |
| }, |
| "type": "uint32", |
| "members": [ |
| { |
| "name": "NONE", |
| "location": { |
| "filename": "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": "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": "test.name/ErrorEnun", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 28, |
| "column": 6, |
| "length": 9 |
| }, |
| "type": "uint32", |
| "members": [ |
| { |
| "name": "ERR_FOO", |
| "location": { |
| "filename": "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": "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": "test.name/handle", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 11, |
| "column": 10, |
| "length": 6 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "properties": [ |
| { |
| "name": "subtype", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 13, |
| "column": 18, |
| "length": 7 |
| }, |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/obj_type", |
| "nullable": false |
| } |
| } |
| ] |
| } |
| ], |
| "interface_declarations": [ |
| { |
| "name": "test.name/WithAndWithoutRequestResponse", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 17, |
| "column": 10, |
| "length": 29 |
| }, |
| "methods": [ |
| { |
| "ordinal": 257584335957785512, |
| "name": "NoRequestNoResponse", |
| "location": { |
| "filename": "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, |
| "is_resource": false |
| }, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 8101632395109729785, |
| "name": "NoRequestEmptyResponse", |
| "location": { |
| "filename": "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, |
| "is_resource": 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_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 5054636755429784136, |
| "name": "NoRequestWithResponse", |
| "location": { |
| "filename": "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, |
| "is_resource": false |
| }, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "ret", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 20, |
| "column": 40, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 5108499630221504549, |
| "name": "WithRequestNoResponse", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 21, |
| "column": 5, |
| "length": 21 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "arg", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 21, |
| "column": 34, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| }, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 108302452954061159, |
| "name": "WithRequestEmptyResponse", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 22, |
| "column": 5, |
| "length": 24 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "arg", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 22, |
| "column": 37, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": 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_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 383797738148261568, |
| "name": "WithRequestWithResponse", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 23, |
| "column": 5, |
| "length": 23 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "arg", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 23, |
| "column": 36, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| }, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "ret", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 23, |
| "column": 52, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 301337558307652787, |
| "name": "OnEmptyResponse", |
| "location": { |
| "filename": "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_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 3069035692499413769, |
| "name": "OnWithResponse", |
| "location": { |
| "filename": "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": "protocols.test.fidl", |
| "line": 25, |
| "column": 30, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| }, |
| "is_composed": false |
| } |
| ] |
| }, |
| { |
| "name": "test.name/WithErrorSyntax", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 33, |
| "column": 10, |
| "length": 15 |
| }, |
| "methods": [ |
| { |
| "ordinal": 6422511116044938191, |
| "name": "ResponseAsStruct", |
| "location": { |
| "filename": "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, |
| "is_resource": false |
| }, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/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": "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, |
| "is_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 2364249812017832126, |
| "name": "ErrorAsPrimitive", |
| "location": { |
| "filename": "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, |
| "is_resource": false |
| }, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/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": "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, |
| "is_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 4597390537870356095, |
| "name": "ErrorAsEnum", |
| "location": { |
| "filename": "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, |
| "is_resource": false |
| }, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/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": "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, |
| "is_resource": false |
| }, |
| "is_composed": false |
| } |
| ] |
| }, |
| { |
| "name": "test.name/ChannelProtocol", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 40, |
| "column": 10, |
| "length": 15 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Transport", |
| "value": "Channel" |
| } |
| ], |
| "methods": [ |
| { |
| "ordinal": 1954005452660588540, |
| "name": "MethodA", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 41, |
| "column": 5, |
| "length": 7 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "a", |
| "location": { |
| "filename": "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": "protocols.test.fidl", |
| "line": 41, |
| "column": 28, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 24, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| }, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 2691096518916888736, |
| "name": "EventA", |
| "location": { |
| "filename": "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": "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": "protocols.test.fidl", |
| "line": 42, |
| "column": 30, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 24, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 6751311874614576291, |
| "name": "MethodB", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 43, |
| "column": 5, |
| "length": 7 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "a", |
| "location": { |
| "filename": "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": "protocols.test.fidl", |
| "line": 43, |
| "column": 28, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 24, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| }, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "result", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 43, |
| "column": 41, |
| "length": 6 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 3948151641640179063, |
| "name": "MutateSocket", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 44, |
| "column": 5, |
| "length": 12 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "rights": 2147483648, |
| "nullable": false |
| }, |
| "name": "a", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 44, |
| "column": 32, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 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, |
| "is_resource": true |
| }, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "rights": 2147483648, |
| "nullable": false |
| }, |
| "name": "b", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 44, |
| "column": 53, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 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, |
| "is_resource": true |
| }, |
| "is_composed": false |
| } |
| ] |
| }, |
| { |
| "name": "test.name/Transitional", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 47, |
| "column": 10, |
| "length": 12 |
| }, |
| "methods": [ |
| { |
| "ordinal": 8417059970765918690, |
| "name": "Request", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 49, |
| "column": 5, |
| "length": 7 |
| }, |
| "has_request": true, |
| "maybe_attributes": [ |
| { |
| "name": "Transitional", |
| "value": "" |
| } |
| ], |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "x", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 49, |
| "column": 19, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "maybe_request_payload": "test.name/SomeLongAnonymousPrefix24", |
| "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, |
| "is_resource": false |
| }, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "y", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 49, |
| "column": 32, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "maybe_response_payload": "test.name/SomeLongAnonymousPrefix25", |
| "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_resource": false |
| }, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 4736529736500432226, |
| "name": "OneWay", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 52, |
| "column": 5, |
| "length": 6 |
| }, |
| "has_request": true, |
| "maybe_attributes": [ |
| { |
| "name": "Transitional", |
| "value": "" |
| } |
| ], |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "x", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 52, |
| "column": 18, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "maybe_request_payload": "test.name/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, |
| "is_resource": false |
| }, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 1744293851714922796, |
| "name": "Event", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 55, |
| "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": "protocols.test.fidl", |
| "line": 55, |
| "column": 20, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "maybe_response_payload": "test.name/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_resource": false |
| }, |
| "is_composed": false |
| } |
| ] |
| } |
| ], |
| "service_declarations": [], |
| "struct_declarations": [ |
| { |
| "name": "test.name/SomeLongAnonymousPrefix4", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 20, |
| "column": 32, |
| "length": 12 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "ret", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 20, |
| "column": 40, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix5", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 21, |
| "column": 26, |
| "length": 12 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "arg", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 21, |
| "column": 34, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix6", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 22, |
| "column": 29, |
| "length": 12 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "arg", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 22, |
| "column": 37, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix8", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 23, |
| "column": 28, |
| "length": 12 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "arg", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 23, |
| "column": 36, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix9", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 23, |
| "column": 44, |
| "length": 12 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "ret", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 23, |
| "column": 52, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix11", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 25, |
| "column": 22, |
| "length": 12 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "ret", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 25, |
| "column": 30, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/WithErrorSyntax_ResponseAsStruct_Response", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 34, |
| "column": 27, |
| "length": 27 |
| }, |
| "anonymous": false, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "a", |
| "location": { |
| "filename": "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": "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": "protocols.test.fidl", |
| "line": 34, |
| "column": 52, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "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_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix13", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 34, |
| "column": 27, |
| "length": 27 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/WithErrorSyntax_ResponseAsStruct_Result", |
| "nullable": false |
| }, |
| "name": "result", |
| "location": { |
| "filename": "generated", |
| "line": 3, |
| "column": 1, |
| "length": 6 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/WithErrorSyntax_ErrorAsPrimitive_Response", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 35, |
| "column": 27, |
| "length": 2 |
| }, |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix15", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 35, |
| "column": 27, |
| "length": 2 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/WithErrorSyntax_ErrorAsPrimitive_Result", |
| "nullable": false |
| }, |
| "name": "result", |
| "location": { |
| "filename": "generated", |
| "line": 6, |
| "column": 1, |
| "length": 6 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/WithErrorSyntax_ErrorAsEnum_Response", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 36, |
| "column": 22, |
| "length": 2 |
| }, |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix17", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 36, |
| "column": 22, |
| "length": 2 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/WithErrorSyntax_ErrorAsEnum_Result", |
| "nullable": false |
| }, |
| "name": "result", |
| "location": { |
| "filename": "generated", |
| "line": 9, |
| "column": 1, |
| "length": 6 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix18", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 41, |
| "column": 12, |
| "length": 18 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "a", |
| "location": { |
| "filename": "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": "protocols.test.fidl", |
| "line": 41, |
| "column": 28, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 8, |
| "padding": 0 |
| } |
| } |
| ], |
| "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_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix19", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 42, |
| "column": 14, |
| "length": 18 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "a", |
| "location": { |
| "filename": "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": "protocols.test.fidl", |
| "line": 42, |
| "column": 30, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 8, |
| "padding": 0 |
| } |
| } |
| ], |
| "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_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix20", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 43, |
| "column": 12, |
| "length": 18 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "a", |
| "location": { |
| "filename": "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": "protocols.test.fidl", |
| "line": 43, |
| "column": 28, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 8, |
| "padding": 0 |
| } |
| } |
| ], |
| "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_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix21", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 43, |
| "column": 34, |
| "length": 14 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "result", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 43, |
| "column": 41, |
| "length": 6 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix22", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 44, |
| "column": 17, |
| "length": 17 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "rights": 2147483648, |
| "nullable": false |
| }, |
| "name": "a", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 44, |
| "column": 32, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 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, |
| "is_resource": true |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix23", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 44, |
| "column": 38, |
| "length": 17 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "handle", |
| "subtype": "socket", |
| "rights": 2147483648, |
| "nullable": false |
| }, |
| "name": "b", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 44, |
| "column": 53, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 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, |
| "is_resource": true |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix24", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 49, |
| "column": 12, |
| "length": 9 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "x", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 49, |
| "column": 19, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix25", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 49, |
| "column": 25, |
| "length": 9 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "y", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 49, |
| "column": 32, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix26", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 52, |
| "column": 11, |
| "length": 9 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "x", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 52, |
| "column": 18, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/SomeLongAnonymousPrefix27", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 55, |
| "column": 13, |
| "length": 9 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "x", |
| "location": { |
| "filename": "protocols.test.fidl", |
| "line": 55, |
| "column": 20, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| } |
| ], |
| "table_declarations": [], |
| "union_declarations": [ |
| { |
| "name": "test.name/WithErrorSyntax_ResponseAsStruct_Result", |
| "location": { |
| "filename": "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": "test.name/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, |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/WithErrorSyntax_ErrorAsPrimitive_Result", |
| "location": { |
| "filename": "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": "test.name/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, |
| "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, |
| "is_resource": false |
| } |
| }, |
| { |
| "name": "test.name/WithErrorSyntax_ErrorAsEnum_Result", |
| "location": { |
| "filename": "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": "test.name/WithErrorSyntax_ErrorAsEnum_Response", |
| "nullable": false |
| }, |
| "location": { |
| "filename": "generated", |
| "line": 7, |
| "column": 1, |
| "length": 8 |
| } |
| }, |
| { |
| "ordinal": 2, |
| "reserved": false, |
| "name": "err", |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.name/ErrorEnun", |
| "nullable": false |
| }, |
| "location": { |
| "filename": "generated", |
| "line": 8, |
| "column": 1, |
| "length": 3 |
| } |
| } |
| ], |
| "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, |
| "is_resource": false |
| } |
| } |
| ], |
| "type_alias_declarations": [], |
| "declaration_order": [ |
| "test.name/obj_type", |
| "test.name/handle", |
| "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/Transitional", |
| "test.name/ChannelProtocol", |
| "test.name/WithAndWithoutRequestResponse", |
| "test.name/ErrorEnun", |
| "test.name/WithErrorSyntax_ErrorAsEnum_Result", |
| "test.name/WithErrorSyntax" |
| ], |
| "declarations": { |
| "test.name/obj_type": "enum", |
| "test.name/ErrorEnun": "enum", |
| "test.name/handle": "experimental_resource", |
| "test.name/WithAndWithoutRequestResponse": "interface", |
| "test.name/WithErrorSyntax": "interface", |
| "test.name/ChannelProtocol": "interface", |
| "test.name/Transitional": "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/SomeLongAnonymousPrefix24": "struct", |
| "test.name/SomeLongAnonymousPrefix25": "struct", |
| "test.name/SomeLongAnonymousPrefix26": "struct", |
| "test.name/SomeLongAnonymousPrefix27": "struct", |
| "test.name/WithErrorSyntax_ResponseAsStruct_Result": "union", |
| "test.name/WithErrorSyntax_ErrorAsPrimitive_Result": "union", |
| "test.name/WithErrorSyntax_ErrorAsEnum_Result": "union" |
| } |
| } |