blob: 4bea43f6bace31c4a542ba35bc2f66e440e23755 [file] [log] [blame]
{
"version": "0.0.1",
"name": "fidl.test.json",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"interface_declarations": [
{
"name": "fidl.test.json/TestProtocol",
"location": {
"filename": "xunion.test.fidl",
"line": 60,
"column": 10
},
"methods": [
{
"ordinal": 7548006651618394112,
"generated_ordinal": 8255078252057434586,
"name": "StrictXUnionHenceResponseMayBeStackAllocated",
"location": {
"filename": "xunion.test.fidl",
"line": 61,
"column": 5
},
"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,
"contains_union": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/StrictBoundedXUnion",
"nullable": false
},
"name": "xu",
"location": {
"filename": "xunion.test.fidl",
"line": 61,
"column": 76
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.json/SomeLongAnonymousPrefix1",
"maybe_response_type_shape_v1": {
"inline_size": 40,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 32,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": false
},
"is_composed": false
},
{
"ordinal": 1688296084360658944,
"generated_ordinal": 1140178169303334883,
"name": "FlexibleXUnionHenceResponseMustBeHeapAllocated",
"location": {
"filename": "xunion.test.fidl",
"line": 62,
"column": 5
},
"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,
"contains_union": false
},
"has_response": true,
"maybe_response": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/OlderSimpleUnion",
"nullable": false
},
"name": "xu",
"location": {
"filename": "xunion.test.fidl",
"line": 62,
"column": 75
},
"field_shape_v1": {
"offset": 16,
"padding": 0
}
}
],
"maybe_response_payload": "fidl.test.json/SomeLongAnonymousPrefix3",
"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": true,
"contains_union": false
},
"is_composed": false
}
]
}
],
"service_declarations": [],
"struct_declarations": [
{
"name": "fidl.test.json/SomeLongAnonymousPrefix1",
"location": {
"filename": "xunion.test.fidl",
"line": 61,
"column": 55
},
"anonymous": true,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/StrictBoundedXUnion",
"nullable": false
},
"name": "xu",
"location": {
"filename": "xunion.test.fidl",
"line": 61,
"column": 76
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
}
],
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 32,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": false
}
},
{
"name": "fidl.test.json/SomeLongAnonymousPrefix3",
"location": {
"filename": "xunion.test.fidl",
"line": 62,
"column": 57
},
"anonymous": true,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/OlderSimpleUnion",
"nullable": false
},
"name": "xu",
"location": {
"filename": "xunion.test.fidl",
"line": 62,
"column": 75
},
"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": true,
"contains_union": false
}
},
{
"name": "fidl.test.json/Empty",
"location": {
"filename": "xunion.test.fidl",
"line": 47,
"column": 8
},
"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,
"contains_union": false
}
},
{
"name": "fidl.test.json/StructWithNullableXUnion",
"location": {
"filename": "xunion.test.fidl",
"line": 65,
"column": 8
},
"anonymous": false,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/OlderSimpleUnion",
"nullable": true
},
"name": "x1",
"location": {
"filename": "xunion.test.fidl",
"line": 66,
"column": 23
},
"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": true,
"contains_union": false
}
}
],
"table_declarations": [],
"union_declarations": [],
"xunion_declarations": [
{
"name": "fidl.test.json/FlexibleFoo",
"location": {
"filename": "xunion.test.fidl",
"line": 3,
"column": 8
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "s",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "xunion.test.fidl",
"line": 4,
"column": 15
}
},
{
"ordinal": 2,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "xunion.test.fidl",
"line": 5,
"column": 14
}
}
],
"strict": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": true,
"contains_union": false
}
},
{
"name": "fidl.test.json/StrictFoo",
"location": {
"filename": "xunion.test.fidl",
"line": 8,
"column": 15
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "s",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "xunion.test.fidl",
"line": 9,
"column": 15
}
},
{
"ordinal": 2,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "xunion.test.fidl",
"line": 10,
"column": 14
}
}
],
"strict": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": false
}
},
{
"name": "fidl.test.json/ExplicitFoo",
"location": {
"filename": "xunion.test.fidl",
"line": 13,
"column": 8
},
"members": [
{
"ordinal": 2,
"reserved": false,
"name": "s",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "xunion.test.fidl",
"line": 14,
"column": 15
}
},
{
"ordinal": 1,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "xunion.test.fidl",
"line": 15,
"column": 14
}
},
{
"ordinal": 3,
"reserved": true,
"location": {
"filename": "xunion.test.fidl",
"line": 16,
"column": 5
}
}
],
"strict": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": true,
"contains_union": false
}
},
{
"name": "fidl.test.json/ExplicitStrictFoo",
"location": {
"filename": "xunion.test.fidl",
"line": 19,
"column": 15
},
"members": [
{
"ordinal": 1,
"reserved": true,
"location": {
"filename": "xunion.test.fidl",
"line": 20,
"column": 5
}
},
{
"ordinal": 3,
"reserved": false,
"name": "s",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "xunion.test.fidl",
"line": 21,
"column": 15
}
},
{
"ordinal": 2,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "xunion.test.fidl",
"line": 22,
"column": 14
}
}
],
"strict": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": false
}
},
{
"name": "fidl.test.json/OlderSimpleUnion",
"location": {
"filename": "xunion.test.fidl",
"line": 25,
"column": 8
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int64"
},
"location": {
"filename": "xunion.test.fidl",
"line": 26,
"column": 14
}
},
{
"ordinal": 2,
"reserved": false,
"name": "f",
"type": {
"kind": "primitive",
"subtype": "float32"
},
"location": {
"filename": "xunion.test.fidl",
"line": 27,
"column": 16
}
}
],
"strict": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": true,
"contains_union": false
}
},
{
"name": "fidl.test.json/NewerSimpleUnion",
"location": {
"filename": "xunion.test.fidl",
"line": 30,
"column": 8
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int64"
},
"location": {
"filename": "xunion.test.fidl",
"line": 33,
"column": 14
}
},
{
"ordinal": 2,
"reserved": false,
"name": "s",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "xunion.test.fidl",
"line": 35,
"column": 15
}
},
{
"ordinal": 3,
"reserved": false,
"name": "v",
"type": {
"kind": "vector",
"element_type": {
"kind": "string",
"nullable": false
},
"nullable": false
},
"location": {
"filename": "xunion.test.fidl",
"line": 36,
"column": 23
}
}
],
"strict": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 3,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": true,
"contains_union": false
}
},
{
"name": "fidl.test.json/StrictSimpleXUnion",
"location": {
"filename": "xunion.test.fidl",
"line": 41,
"column": 15
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "xunion.test.fidl",
"line": 42,
"column": 14
}
},
{
"ordinal": 2,
"reserved": false,
"name": "f",
"type": {
"kind": "primitive",
"subtype": "float32"
},
"location": {
"filename": "xunion.test.fidl",
"line": 43,
"column": 16
}
},
{
"ordinal": 3,
"reserved": false,
"name": "s",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "xunion.test.fidl",
"line": 44,
"column": 15
}
}
],
"strict": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": false
}
},
{
"name": "fidl.test.json/XUnionContainingEmptyStruct",
"location": {
"filename": "xunion.test.fidl",
"line": 50,
"column": 8
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "empty",
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/Empty",
"nullable": false
},
"location": {
"filename": "xunion.test.fidl",
"line": 53,
"column": 14
}
}
],
"strict": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": true,
"contains_union": false
}
},
{
"name": "fidl.test.json/StrictBoundedXUnion",
"location": {
"filename": "xunion.test.fidl",
"line": 56,
"column": 15
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "v",
"type": {
"kind": "vector",
"element_type": {
"kind": "primitive",
"subtype": "uint8"
},
"maybe_element_count": 10,
"nullable": false
},
"location": {
"filename": "xunion.test.fidl",
"line": 57,
"column": 25
}
}
],
"strict": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 32,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": false
}
},
{
"name": "fidl.test.json/ExplicitXUnion",
"location": {
"filename": "xunion.test.fidl",
"line": 69,
"column": 8
},
"members": [
{
"ordinal": 3,
"reserved": true,
"location": {
"filename": "xunion.test.fidl",
"line": 70,
"column": 5
}
},
{
"ordinal": 2,
"reserved": true,
"location": {
"filename": "xunion.test.fidl",
"line": 71,
"column": 5
}
},
{
"ordinal": 1,
"reserved": false,
"name": "i",
"type": {
"kind": "primitive",
"subtype": "int64"
},
"location": {
"filename": "xunion.test.fidl",
"line": 72,
"column": 14
}
},
{
"ordinal": 4,
"reserved": false,
"name": "f",
"type": {
"kind": "primitive",
"subtype": "float32"
},
"location": {
"filename": "xunion.test.fidl",
"line": 73,
"column": 16
}
}
],
"strict": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": true,
"contains_union": false
}
}
],
"type_alias_declarations": [],
"declaration_order": [
"fidl.test.json/StructWithNullableXUnion",
"fidl.test.json/StrictSimpleXUnion",
"fidl.test.json/StrictFoo",
"fidl.test.json/StrictBoundedXUnion",
"fidl.test.json/OlderSimpleUnion",
"fidl.test.json/TestProtocol",
"fidl.test.json/NewerSimpleUnion",
"fidl.test.json/FlexibleFoo",
"fidl.test.json/ExplicitXUnion",
"fidl.test.json/ExplicitStrictFoo",
"fidl.test.json/ExplicitFoo",
"fidl.test.json/Empty",
"fidl.test.json/XUnionContainingEmptyStruct"
],
"declarations": {
"fidl.test.json/TestProtocol": "interface",
"fidl.test.json/SomeLongAnonymousPrefix0": "struct",
"fidl.test.json/SomeLongAnonymousPrefix1": "struct",
"fidl.test.json/SomeLongAnonymousPrefix2": "struct",
"fidl.test.json/SomeLongAnonymousPrefix3": "struct",
"fidl.test.json/Empty": "struct",
"fidl.test.json/StructWithNullableXUnion": "struct",
"fidl.test.json/FlexibleFoo": "xunion",
"fidl.test.json/StrictFoo": "xunion",
"fidl.test.json/ExplicitFoo": "xunion",
"fidl.test.json/ExplicitStrictFoo": "xunion",
"fidl.test.json/OlderSimpleUnion": "xunion",
"fidl.test.json/NewerSimpleUnion": "xunion",
"fidl.test.json/StrictSimpleXUnion": "xunion",
"fidl.test.json/XUnionContainingEmptyStruct": "xunion",
"fidl.test.json/StrictBoundedXUnion": "xunion",
"fidl.test.json/ExplicitXUnion": "xunion"
}
}