blob: b66a8bc74d53a50b89ceb997a6e2fc76cd74804a [file] [log] [blame]
{
"version": "0.0.1",
"name": "example",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"interface_declarations": [],
"struct_declarations": [
{
"name": "example/OneStringOfMaxLengthFive",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 3,
"column": 7
},
"anonymous": false,
"members": [
{
"type": {
"kind": "string",
"maybe_element_count": 5,
"nullable": false
},
"name": "the_string",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 4,
"column": 13
},
"size": 16,
"max_out_of_line": 8,
"alignment": 8,
"offset": 0,
"max_handles": 0
}
],
"size": 16,
"max_out_of_line": 8,
"alignment": 8,
"max_handles": 0
},
{
"name": "example/StructOnlyPrimitives",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 7,
"column": 7
},
"anonymous": false,
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int32"
},
"name": "i",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 8,
"column": 10
},
"size": 4,
"max_out_of_line": 0,
"alignment": 4,
"offset": 0,
"max_handles": 0
},
{
"type": {
"kind": "primitive",
"subtype": "bool"
},
"name": "b",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 9,
"column": 9
},
"size": 1,
"max_out_of_line": 0,
"alignment": 1,
"offset": 4,
"max_handles": 0
},
{
"type": {
"kind": "primitive",
"subtype": "uint16"
},
"name": "u",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 10,
"column": 11
},
"size": 2,
"max_out_of_line": 0,
"alignment": 2,
"offset": 6,
"max_handles": 0
}
],
"size": 8,
"max_out_of_line": 0,
"alignment": 4,
"max_handles": 0
}
],
"table_declarations": [
{
"name": "example/TableOnlyPrimitives",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 13,
"column": 6
},
"members": [
{
"ordinal": 1,
"reserved": false,
"type": {
"kind": "primitive",
"subtype": "int32"
},
"name": "i",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 14,
"column": 13
},
"size": 4,
"max_out_of_line": 0,
"alignment": 4,
"max_handles": 0
},
{
"ordinal": 2,
"reserved": false,
"type": {
"kind": "primitive",
"subtype": "bool"
},
"name": "b",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 15,
"column": 12
},
"size": 1,
"max_out_of_line": 0,
"alignment": 1,
"max_handles": 0
},
{
"ordinal": 3,
"reserved": false,
"type": {
"kind": "primitive",
"subtype": "uint16"
},
"name": "u",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 16,
"column": 14
},
"size": 2,
"max_out_of_line": 0,
"alignment": 2,
"max_handles": 0
}
],
"size": 16,
"max_out_of_line": 72,
"alignment": 8,
"max_handles": 0
}
],
"union_declarations": [],
"xunion_declarations": [
{
"name": "example/UnionOnlyPrimitives",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 19,
"column": 7
},
"members": [
{
"ordinal": 1509869756,
"type": {
"kind": "primitive",
"subtype": "int32"
},
"name": "i",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 20,
"column": 10
},
"size": 4,
"max_out_of_line": 0,
"alignment": 4,
"offset": 0
},
{
"ordinal": 717083448,
"type": {
"kind": "primitive",
"subtype": "bool"
},
"name": "b",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 21,
"column": 9
},
"size": 1,
"max_out_of_line": 0,
"alignment": 1,
"offset": 0
},
{
"ordinal": 2077764519,
"type": {
"kind": "primitive",
"subtype": "uint16"
},
"name": "u",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 22,
"column": 11
},
"size": 2,
"max_out_of_line": 0,
"alignment": 2,
"offset": 0
}
],
"size": 24,
"max_out_of_line": 8,
"alignment": 8,
"max_handles": 0
},
{
"name": "example/UnionWithTableStructString",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 25,
"column": 7
},
"members": [
{
"ordinal": 999827751,
"type": {
"kind": "identifier",
"identifier": "example/StructOnlyPrimitives",
"nullable": false
},
"name": "struct",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 26,
"column": 25
},
"size": 8,
"max_out_of_line": 0,
"alignment": 4,
"offset": 0
},
{
"ordinal": 618808300,
"type": {
"kind": "identifier",
"identifier": "example/TableOnlyPrimitives",
"nullable": false
},
"name": "table",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 27,
"column": 24
},
"size": 16,
"max_out_of_line": 72,
"alignment": 8,
"offset": 0
},
{
"ordinal": 1790719835,
"type": {
"kind": "identifier",
"identifier": "example/UnionOnlyPrimitives",
"nullable": false
},
"name": "union",
"location": {
"filename": "tools/fidl/gidl/example/example.test.fidl",
"line": 28,
"column": 24
},
"size": 24,
"max_out_of_line": 8,
"alignment": 8,
"offset": 0
}
],
"size": 24,
"max_out_of_line": 88,
"alignment": 8,
"max_handles": 0
}
],
"declaration_order": [
"example/OneStringOfMaxLengthFive",
"example/StructOnlyPrimitives",
"example/UnionOnlyPrimitives",
"example/TableOnlyPrimitives",
"example/UnionWithTableStructString"
],
"declarations": {
"example/OneStringOfMaxLengthFive": "struct",
"example/StructOnlyPrimitives": "struct",
"example/TableOnlyPrimitives": "table",
"example/UnionOnlyPrimitives": "xunion",
"example/UnionWithTableStructString": "xunion"
}
}