| { |
| "name": "test.protocolrequest", |
| "library_dependencies": [], |
| "bits_declarations": [], |
| "const_declarations": [], |
| "enum_declarations": [], |
| "experimental_resource_declarations": [], |
| "protocol_declarations": [ |
| { |
| "name": "test.protocolrequest/Child", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 3, |
| "column": 10, |
| "length": 5 |
| }, |
| "composed_protocols": [], |
| "methods": [] |
| }, |
| { |
| "name": "test.protocolrequest/Parent", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 5, |
| "column": 10, |
| "length": 6 |
| }, |
| "composed_protocols": [], |
| "methods": [ |
| { |
| "ordinal": 881818649151440699, |
| "name": "GetChild", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 6, |
| "column": 5, |
| "length": 8 |
| }, |
| "has_request": true, |
| "has_response": true, |
| "maybe_response_payload": { |
| "kind": "identifier", |
| "identifier": "test.protocolrequest/ParentGetChildTopResponse", |
| "nullable": false, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "is_composed": false, |
| "has_error": false |
| }, |
| { |
| "ordinal": 1096855814967598201, |
| "name": "GetChildRequest", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 9, |
| "column": 5, |
| "length": 15 |
| }, |
| "has_request": true, |
| "has_response": true, |
| "maybe_response_payload": { |
| "kind": "identifier", |
| "identifier": "test.protocolrequest/ParentGetChildRequestTopResponse", |
| "nullable": false, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "is_composed": false, |
| "has_error": false |
| }, |
| { |
| "ordinal": 4470101341872267920, |
| "name": "TakeChild", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 12, |
| "column": 5, |
| "length": 9 |
| }, |
| "has_request": true, |
| "maybe_request_payload": { |
| "kind": "identifier", |
| "identifier": "test.protocolrequest/ParentTakeChildRequest", |
| "nullable": false, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "has_response": false, |
| "is_composed": false, |
| "has_error": false |
| }, |
| { |
| "ordinal": 2333981071306416007, |
| "name": "TakeChildRequest", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 15, |
| "column": 5, |
| "length": 16 |
| }, |
| "has_request": true, |
| "maybe_request_payload": { |
| "kind": "identifier", |
| "identifier": "test.protocolrequest/ParentTakeChildRequestRequest", |
| "nullable": false, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "has_response": false, |
| "is_composed": false, |
| "has_error": false |
| } |
| ] |
| } |
| ], |
| "service_declarations": [], |
| "struct_declarations": [ |
| { |
| "name": "test.protocolrequest/ParentGetChildRequestTopResponse", |
| "naming_context": [ |
| "Parent", |
| "GetChildRequest", |
| "Response" |
| ], |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 9, |
| "column": 27, |
| "length": 51 |
| }, |
| "members": [ |
| { |
| "type": { |
| "kind": "request", |
| "subtype": "test.protocolrequest/Child", |
| "nullable": false, |
| "protocol_transport": "Channel", |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "name": "r", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 10, |
| "column": 9, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| }, |
| "field_shape_v2": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "resource": true, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| { |
| "name": "test.protocolrequest/ParentGetChildTopResponse", |
| "naming_context": [ |
| "Parent", |
| "GetChild", |
| "Response" |
| ], |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 6, |
| "column": 20, |
| "length": 51 |
| }, |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.protocolrequest/Child", |
| "nullable": false, |
| "protocol_transport": "Channel", |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "name": "c", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 7, |
| "column": 9, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| }, |
| "field_shape_v2": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "resource": true, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| { |
| "name": "test.protocolrequest/ParentTakeChildRequest", |
| "naming_context": [ |
| "Parent", |
| "TakeChild", |
| "Request" |
| ], |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 12, |
| "column": 15, |
| "length": 51 |
| }, |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "test.protocolrequest/Child", |
| "nullable": false, |
| "protocol_transport": "Channel", |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "name": "c", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 13, |
| "column": 9, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| }, |
| "field_shape_v2": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "resource": true, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| { |
| "name": "test.protocolrequest/ParentTakeChildRequestRequest", |
| "naming_context": [ |
| "Parent", |
| "TakeChildRequest", |
| "Request" |
| ], |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 15, |
| "column": 22, |
| "length": 51 |
| }, |
| "members": [ |
| { |
| "type": { |
| "kind": "request", |
| "subtype": "test.protocolrequest/Child", |
| "nullable": false, |
| "protocol_transport": "Channel", |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| } |
| }, |
| "name": "r", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/protocol_request.test.fidl", |
| "line": 16, |
| "column": 9, |
| "length": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| }, |
| "field_shape_v2": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "resource": true, |
| "type_shape_v1": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_envelope": false, |
| "has_flexible_envelope": false |
| }, |
| "type_shape_v2": { |
| "inline_size": 4, |
| "alignment": 4, |
| "depth": 0, |
| "max_handles": 1, |
| "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": [], |
| "declaration_order": [ |
| "test.protocolrequest/ParentTakeChildRequestRequest", |
| "test.protocolrequest/ParentTakeChildRequest", |
| "test.protocolrequest/ParentGetChildTopResponse", |
| "test.protocolrequest/ParentGetChildRequestTopResponse", |
| "test.protocolrequest/Parent", |
| "test.protocolrequest/Child" |
| ], |
| "declarations": { |
| "test.protocolrequest/Child": "protocol", |
| "test.protocolrequest/Parent": "protocol", |
| "test.protocolrequest/ParentGetChildRequestTopResponse": "struct", |
| "test.protocolrequest/ParentGetChildTopResponse": "struct", |
| "test.protocolrequest/ParentTakeChildRequest": "struct", |
| "test.protocolrequest/ParentTakeChildRequestRequest": "struct" |
| } |
| } |