blob: 7861c30a4f01b24f983424acc2f79919fc13fec7 [file] [log] [blame]
{
"name": "test.emptystruct",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"experimental_resource_declarations": [],
"protocol_declarations": [
{
"name": "test.emptystruct/EmptyProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 5,
"column": 10,
"length": 13
},
"composed_protocols": [],
"methods": [
{
"ordinal": 1378773277029173000,
"name": "Send",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 6,
"column": 5,
"length": 4
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.emptystruct/EmptyProtocolSendRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"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": 2301564782476583487,
"name": "Receive",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 9,
"column": 8,
"length": 7
},
"has_request": false,
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.emptystruct/EmptyProtocolReceiveRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"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
},
{
"ordinal": 534401212734647530,
"name": "SendAndReceive",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 12,
"column": 5,
"length": 14
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.emptystruct/EmptyProtocolSendAndReceiveRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"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.emptystruct/EmptyProtocolSendAndReceiveTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"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.emptystruct/Empty",
"naming_context": [
"Empty"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 3,
"column": 6,
"length": 5
},
"members": [],
"resource": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.emptystruct/EmptyProtocolReceiveRequest",
"naming_context": [
"EmptyProtocol",
"Receive",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 9,
"column": 16,
"length": 31
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.emptystruct/Empty",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "e",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 10,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.emptystruct/EmptyProtocolSendAndReceiveRequest",
"naming_context": [
"EmptyProtocol",
"SendAndReceive",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 12,
"column": 20,
"length": 31
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.emptystruct/Empty",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "e",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 13,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.emptystruct/EmptyProtocolSendAndReceiveTopResponse",
"naming_context": [
"EmptyProtocol",
"SendAndReceive",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 14,
"column": 12,
"length": 31
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.emptystruct/Empty",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "e",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 15,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.emptystruct/EmptyProtocolSendRequest",
"naming_context": [
"EmptyProtocol",
"Send",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 6,
"column": 10,
"length": 31
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.emptystruct/Empty",
"nullable": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "e",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/empty_struct.test.fidl",
"line": 7,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"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": 1,
"alignment": 1,
"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": [],
"declaration_order": [
"test.emptystruct/Empty",
"test.emptystruct/EmptyProtocolSendRequest",
"test.emptystruct/EmptyProtocolSendAndReceiveTopResponse",
"test.emptystruct/EmptyProtocolSendAndReceiveRequest",
"test.emptystruct/EmptyProtocolReceiveRequest",
"test.emptystruct/EmptyProtocol"
],
"declarations": {
"test.emptystruct/EmptyProtocol": "protocol",
"test.emptystruct/Empty": "struct",
"test.emptystruct/EmptyProtocolReceiveRequest": "struct",
"test.emptystruct/EmptyProtocolSendAndReceiveRequest": "struct",
"test.emptystruct/EmptyProtocolSendAndReceiveTopResponse": "struct",
"test.emptystruct/EmptyProtocolSendRequest": "struct"
}
}