blob: 7a8f78f94f937523e0a09fbf377834dbaadedb7e [file] [log] [blame]
{
"version": "0.0.1",
"name": "fidl.test.encapsulatedstructs",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"experimental_resource_declarations": [],
"interface_declarations": [],
"service_declarations": [],
"struct_declarations": [
{
"name": "fidl.test.encapsulatedstructs/Int8Int32",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 3,
"column": 8,
"length": 9
},
"anonymous": false,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int8"
},
"name": "a",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 4,
"column": 10,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 3
}
},
{
"type": {
"kind": "primitive",
"subtype": "int32"
},
"name": "b",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 6,
"column": 11,
"length": 1
},
"field_shape_v1": {
"offset": 4,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
}
},
{
"name": "fidl.test.encapsulatedstructs/Int16Int8",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 9,
"column": 8,
"length": 9
},
"anonymous": false,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int16"
},
"name": "a",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 10,
"column": 11,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "primitive",
"subtype": "int8"
},
"name": "b",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 11,
"column": 10,
"length": 1
},
"field_shape_v1": {
"offset": 2,
"padding": 1
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 2,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
}
},
{
"name": "fidl.test.encapsulatedstructs/ArrayInt16Int8",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 15,
"column": 8,
"length": 14
},
"anonymous": false,
"members": [
{
"type": {
"kind": "array",
"element_type": {
"kind": "identifier",
"identifier": "fidl.test.encapsulatedstructs/Int16Int8",
"nullable": false
},
"element_count": 3
},
"name": "arr",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 16,
"column": 24,
"length": 3
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 12,
"alignment": 2,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
}
},
{
"name": "fidl.test.encapsulatedstructs/StructPaddingTestStruct",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 20,
"column": 8,
"length": 23
},
"anonymous": false,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.encapsulatedstructs/Int16Int8",
"nullable": false
},
"name": "trailing",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 21,
"column": 15,
"length": 8
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.encapsulatedstructs/Int8Int32",
"nullable": false
},
"name": "inner",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 25,
"column": 15,
"length": 5
},
"field_shape_v1": {
"offset": 4,
"padding": 0
}
},
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.encapsulatedstructs/ArrayInt16Int8",
"nullable": false
},
"name": "array",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 26,
"column": 20,
"length": 5
},
"field_shape_v1": {
"offset": 12,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_flexible_envelope": false
}
},
{
"name": "fidl.test.encapsulatedstructs/NonInlineStructTestStruct",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 31,
"column": 17,
"length": 25
},
"anonymous": false,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.encapsulatedstructs/Int16Int8",
"nullable": true
},
"name": "element",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 32,
"column": 16,
"length": 7
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "handle",
"subtype": "handle",
"rights": 2147483648,
"nullable": false
},
"name": "h",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 33,
"column": 12,
"length": 1
},
"field_shape_v1": {
"offset": 8,
"padding": 4
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": false
}
},
{
"name": "fidl.test.encapsulatedstructs/TopLevelStruct",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 37,
"column": 17,
"length": 14
},
"anonymous": false,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.encapsulatedstructs/StructPaddingTestStruct",
"nullable": false
},
"name": "a",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 38,
"column": 29,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
},
{
"type": {
"kind": "identifier",
"identifier": "fidl.test.encapsulatedstructs/NonInlineStructTestStruct",
"nullable": false
},
"name": "b",
"location": {
"filename": "../../zircon/tools/fidl/testdata/encapsulated_structs.test.fidl",
"line": 39,
"column": 31,
"length": 1
},
"field_shape_v1": {
"offset": 24,
"padding": 0
}
}
],
"resource": true,
"type_shape_v1": {
"inline_size": 40,
"alignment": 8,
"depth": 1,
"max_handles": 1,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": false
}
}
],
"table_declarations": [],
"union_declarations": [],
"type_alias_declarations": [],
"declaration_order": [
"fidl.test.encapsulatedstructs/NonInlineStructTestStruct",
"fidl.test.encapsulatedstructs/Int8Int32",
"fidl.test.encapsulatedstructs/Int16Int8",
"fidl.test.encapsulatedstructs/ArrayInt16Int8",
"fidl.test.encapsulatedstructs/StructPaddingTestStruct",
"fidl.test.encapsulatedstructs/TopLevelStruct"
],
"declarations": {
"fidl.test.encapsulatedstructs/Int8Int32": "struct",
"fidl.test.encapsulatedstructs/Int16Int8": "struct",
"fidl.test.encapsulatedstructs/ArrayInt16Int8": "struct",
"fidl.test.encapsulatedstructs/StructPaddingTestStruct": "struct",
"fidl.test.encapsulatedstructs/NonInlineStructTestStruct": "struct",
"fidl.test.encapsulatedstructs/TopLevelStruct": "struct"
}
}