blob: 879b26ec3c1d82345eb91f185dcf327994f2bbc4 [file] [log] [blame]
{
"name": "test.struct",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"experimental_resource_declarations": [],
"protocol_declarations": [],
"service_declarations": [],
"struct_declarations": [
{
"name": "test.struct/BasicStruct",
"naming_context": [
"BasicStruct"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/struct.test.fidl",
"line": 8,
"column": 6,
"length": 11
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "uint32",
"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
}
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/struct.test.fidl",
"line": 9,
"column": 5,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 4
},
"field_shape_v2": {
"offset": 0,
"padding": 4
}
},
{
"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
}
},
"name": "y",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/struct.test.fidl",
"line": 10,
"column": 5,
"length": 1
},
"field_shape_v1": {
"offset": 8,
"padding": 0
},
"field_shape_v2": {
"offset": 8,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"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": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.struct/Simple",
"naming_context": [
"Simple"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/struct.test.fidl",
"line": 3,
"column": 6,
"length": 6
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "uint8",
"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": "f1",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/struct.test.fidl",
"line": 4,
"column": 5,
"length": 2
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "bool",
"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": "f2",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/struct.test.fidl",
"line": 5,
"column": 5,
"length": 2
},
"field_shape_v1": {
"offset": 1,
"padding": 0
},
"field_shape_v2": {
"offset": 1,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 2,
"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": 2,
"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.struct/Simple",
"test.struct/BasicStruct"
],
"declarations": {
"test.struct/BasicStruct": "struct",
"test.struct/Simple": "struct"
}
}