blob: 156960d050b0453e23faa9bcf0e2e322bec6d11a [file] [log] [blame]
{
"name": "test.requestflexibleenvelope",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"experimental_resource_declarations": [],
"protocol_declarations": [
{
"name": "test.requestflexibleenvelope/Protocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 13,
"column": 10,
"length": 8
},
"composed_protocols": [],
"methods": [
{
"ordinal": 700529454616207123,
"name": "RequestStrictResponseFlexible",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 14,
"column": 5,
"length": 29
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.requestflexibleenvelope/ProtocolRequestStrictResponseFlexibleRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.requestflexibleenvelope/ProtocolRequestStrictResponseFlexibleTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
"is_composed": false,
"has_error": false
},
{
"ordinal": 5191655763393883319,
"name": "RequestFlexibleResponseStrict",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 19,
"column": 5,
"length": 29
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.requestflexibleenvelope/ProtocolRequestFlexibleResponseStrictRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.requestflexibleenvelope/ProtocolRequestFlexibleResponseStrictTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
}
]
}
],
"service_declarations": [],
"struct_declarations": [
{
"name": "test.requestflexibleenvelope/ProtocolRequestFlexibleResponseStrictRequest",
"naming_context": [
"Protocol",
"RequestFlexibleResponseStrict",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 19,
"column": 35,
"length": 37
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.requestflexibleenvelope/FlexibleFoo",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
"name": "s",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 20,
"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": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
{
"name": "test.requestflexibleenvelope/ProtocolRequestFlexibleResponseStrictTopResponse",
"naming_context": [
"Protocol",
"RequestFlexibleResponseStrict",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 21,
"column": 12,
"length": 35
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.requestflexibleenvelope/StrictFoo",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"name": "f",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 22,
"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": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
{
"name": "test.requestflexibleenvelope/ProtocolRequestStrictResponseFlexibleRequest",
"naming_context": [
"Protocol",
"RequestStrictResponseFlexible",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 14,
"column": 35,
"length": 35
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.requestflexibleenvelope/StrictFoo",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
"name": "s",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.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": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
},
{
"name": "test.requestflexibleenvelope/ProtocolRequestStrictResponseFlexibleTopResponse",
"naming_context": [
"Protocol",
"RequestStrictResponseFlexible",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 16,
"column": 12,
"length": 37
},
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.requestflexibleenvelope/FlexibleFoo",
"nullable": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
"name": "f",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 17,
"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": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
}
],
"external_struct_declarations": [],
"table_declarations": [],
"union_declarations": [
{
"name": "test.requestflexibleenvelope/FlexibleFoo",
"naming_context": [
"FlexibleFoo"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 3,
"column": 6,
"length": 11
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "s",
"type": {
"kind": "string",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 4,
"column": 8,
"length": 1
}
},
{
"ordinal": 2,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"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": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 5,
"column": 8,
"length": 1
}
}
],
"strict": false,
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
{
"name": "test.requestflexibleenvelope/StrictFoo",
"naming_context": [
"StrictFoo"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 8,
"column": 6,
"length": 9
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "s",
"type": {
"kind": "string",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 9,
"column": 8,
"length": 1
}
},
{
"ordinal": 2,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"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": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/request_flexible_envelope.test.fidl",
"line": 10,
"column": 8,
"length": 1
}
}
],
"strict": true,
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
}
],
"type_alias_declarations": [],
"declaration_order": [
"test.requestflexibleenvelope/StrictFoo",
"test.requestflexibleenvelope/ProtocolRequestStrictResponseFlexibleRequest",
"test.requestflexibleenvelope/ProtocolRequestFlexibleResponseStrictTopResponse",
"test.requestflexibleenvelope/FlexibleFoo",
"test.requestflexibleenvelope/ProtocolRequestStrictResponseFlexibleTopResponse",
"test.requestflexibleenvelope/ProtocolRequestFlexibleResponseStrictRequest",
"test.requestflexibleenvelope/Protocol"
],
"declarations": {
"test.requestflexibleenvelope/Protocol": "protocol",
"test.requestflexibleenvelope/ProtocolRequestFlexibleResponseStrictRequest": "struct",
"test.requestflexibleenvelope/ProtocolRequestFlexibleResponseStrictTopResponse": "struct",
"test.requestflexibleenvelope/ProtocolRequestStrictResponseFlexibleRequest": "struct",
"test.requestflexibleenvelope/ProtocolRequestStrictResponseFlexibleTopResponse": "struct",
"test.requestflexibleenvelope/FlexibleFoo": "union",
"test.requestflexibleenvelope/StrictFoo": "union"
}
}