blob: 4a3a6a6129eafcdf19f3155e71b21f399d7a3ac8 [file] [log] [blame]
{
"version": "0.0.1",
"name": "test.name",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"interface_declarations": [],
"service_declarations": [],
"struct_declarations": [
{
"name": "test.name/HandlesInTypes",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 11,
"column": 8
},
"anonymous": false,
"members": [
{
"type": {
"kind": "handle",
"subtype": "vmo",
"rights": 2147483648,
"nullable": false
},
"name": "normal_handle",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 12,
"column": 17
},
"field_shape_v1": {
"offset": 0,
"padding": 4
}
},
{
"type": {
"kind": "vector",
"element_type": {
"kind": "handle",
"subtype": "vmo",
"rights": 2147483648,
"nullable": false
},
"nullable": false
},
"name": "handle_in_vec",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 14,
"column": 25
},
"field_shape_v1": {
"offset": 8,
"padding": 0
}
},
{
"type": {
"kind": "array",
"element_type": {
"kind": "handle",
"subtype": "vmo",
"rights": 2147483648,
"nullable": false
},
"element_count": 5
},
"name": "handle_in_array",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 15,
"column": 26
},
"field_shape_v1": {
"offset": 24,
"padding": 4
}
},
{
"type": {
"kind": "vector",
"element_type": {
"kind": "array",
"element_type": {
"kind": "handle",
"subtype": "vmo",
"rights": 2147483648,
"nullable": false
},
"element_count": 5
},
"nullable": false
},
"name": "handle_in_mixed_vec_array",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 16,
"column": 34
},
"field_shape_v1": {
"offset": 48,
"padding": 0
}
},
{
"type": {
"kind": "identifier",
"identifier": "test.name/TableWithHandle",
"nullable": false
},
"name": "table_with_handle",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 18,
"column": 21
},
"field_shape_v1": {
"offset": 64,
"padding": 0
}
},
{
"type": {
"kind": "identifier",
"identifier": "test.name/UnionWithHandle",
"nullable": false
},
"name": "union_with_handle",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 19,
"column": 21
},
"field_shape_v1": {
"offset": 80,
"padding": 0
}
}
],
"type_shape_v1": {
"inline_size": 104,
"alignment": 8,
"depth": 2,
"max_handles": 4294967295,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": true,
"contains_union": true
}
}
],
"table_declarations": [
{
"name": "test.name/TableWithHandle",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 3,
"column": 7
},
"members": [
{
"ordinal": 1,
"reserved": false,
"type": {
"kind": "handle",
"subtype": "vmo",
"rights": 2147483648,
"nullable": false
},
"name": "h",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 4,
"column": 20
}
}
],
"strict": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 1,
"max_out_of_line": 24,
"has_padding": true,
"has_flexible_envelope": true,
"contains_union": false
}
}
],
"union_declarations": [
{
"name": "test.name/UnionWithHandle",
"location": {
"filename": "handles_in_types.test.fidl",
"line": 7,
"column": 16
},
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "h",
"type": {
"kind": "handle",
"subtype": "vmo",
"rights": 2147483648,
"nullable": false
},
"location": {
"filename": "handles_in_types.test.fidl",
"line": 8,
"column": 20
}
}
],
"strict": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": true,
"contains_union": true
}
}
],
"type_alias_declarations": [],
"declaration_order": [
"test.name/UnionWithHandle",
"test.name/TableWithHandle",
"test.name/HandlesInTypes"
],
"declarations": {
"test.name/HandlesInTypes": "struct",
"test.name/TableWithHandle": "table",
"test.name/UnionWithHandle": "union"
}
}