| { |
| "name": "test.drivertwoway", |
| "library_dependencies": [], |
| "bits_declarations": [], |
| "const_declarations": [], |
| "enum_declarations": [], |
| "experimental_resource_declarations": [], |
| "protocol_declarations": [ |
| { |
| "name": "test.drivertwoway/TwoWay", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/driver_two_way.test.fidl", |
| "line": 8, |
| "column": 10, |
| "length": 6 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "transport", |
| "arguments": [ |
| { |
| "name": "value", |
| "type": "string", |
| "value": { |
| "kind": "literal", |
| "value": "Driver", |
| "expression": "\"Driver\"", |
| "literal": { |
| "kind": "string", |
| "value": "Driver", |
| "expression": "\"Driver\"" |
| } |
| }, |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/driver_two_way.test.fidl", |
| "line": 7, |
| "column": 12, |
| "length": 8 |
| } |
| } |
| ], |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/driver_two_way.test.fidl", |
| "line": 7, |
| "column": 1, |
| "length": 20 |
| } |
| } |
| ], |
| "composed_protocols": [], |
| "methods": [ |
| { |
| "ordinal": 989730524426044687, |
| "name": "Add", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/driver_two_way.test.fidl", |
| "line": 9, |
| "column": 5, |
| "length": 3 |
| }, |
| "has_request": true, |
| "maybe_request_payload": { |
| "kind": "identifier", |
| "identifier": "test.drivertwoway/TwoWayAddRequest", |
| "nullable": false, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "has_response": true, |
| "maybe_response_payload": { |
| "kind": "identifier", |
| "identifier": "test.drivertwoway/TwoWayAddTopResponse", |
| "nullable": false, |
| "type_shape_v1": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "is_composed": false, |
| "has_error": false |
| } |
| ] |
| } |
| ], |
| "service_declarations": [], |
| "struct_declarations": [ |
| { |
| "name": "test.drivertwoway/TwoWayAddRequest", |
| "naming_context": [ |
| "TwoWay", |
| "Add", |
| "Request" |
| ], |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/driver_two_way.test.fidl", |
| "line": 9, |
| "column": 9, |
| "length": 62 |
| }, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint16", |
| "type_shape_v1": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "name": "addend1", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/driver_two_way.test.fidl", |
| "line": 10, |
| "column": 9, |
| "length": 7 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| }, |
| "field_shape_v2": { |
| "offset": 0, |
| "padding": 0 |
| } |
| }, |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint16", |
| "type_shape_v1": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "name": "addend2", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/driver_two_way.test.fidl", |
| "line": 11, |
| "column": 9, |
| "length": 7 |
| }, |
| "field_shape_v1": { |
| "offset": 2, |
| "padding": 0 |
| }, |
| "field_shape_v2": { |
| "offset": 2, |
| "padding": 0 |
| } |
| } |
| ], |
| "resource": false, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| { |
| "name": "test.drivertwoway/TwoWayAddTopResponse", |
| "naming_context": [ |
| "TwoWay", |
| "Add", |
| "Response" |
| ], |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/driver_two_way.test.fidl", |
| "line": 12, |
| "column": 12, |
| "length": 34 |
| }, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint16", |
| "type_shape_v1": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "name": "sum", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/driver_two_way.test.fidl", |
| "line": 13, |
| "column": 9, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| }, |
| "field_shape_v2": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "resource": false, |
| "type_shape_v1": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 2, |
| "alignment": 2, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| } |
| ], |
| "external_struct_declarations": [], |
| "table_declarations": [], |
| "union_declarations": [], |
| "type_alias_declarations": [], |
| "new_type_declarations": [], |
| "declaration_order": [ |
| "test.drivertwoway/TwoWayAddTopResponse", |
| "test.drivertwoway/TwoWayAddRequest", |
| "test.drivertwoway/TwoWay" |
| ], |
| "declarations": { |
| "test.drivertwoway/TwoWay": "protocol", |
| "test.drivertwoway/TwoWayAddRequest": "struct", |
| "test.drivertwoway/TwoWayAddTopResponse": "struct" |
| } |
| } |