blob: 9bf296edc22bf9dd25973e5a8b8d4f9c22fb5bf1 [file] [log] [blame]
{
"version": "0.0.1",
"name": "test.name",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"interface_declarations": [],
"service_declarations": [],
"struct_declarations": [],
"table_declarations": [],
"union_declarations": [
{
"name": "test.name/Union",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 3,
"column": 7
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int32"
},
"name": "Primitive",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 4,
"column": 11
},
"size": 4,
"max_out_of_line": 0,
"alignment": 4,
"offset": 8
},
{
"type": {
"kind": "string",
"nullable": false
},
"name": "StringNeedsConstructor",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 5,
"column": 12
},
"size": 16,
"max_out_of_line": 4294967295,
"alignment": 8,
"offset": 8
},
{
"type": {
"kind": "vector",
"element_type": {
"kind": "string",
"nullable": false
},
"nullable": false
},
"name": "VectorStringAlsoNeedsConstructor",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 6,
"column": 20
},
"size": 16,
"max_out_of_line": 4294967295,
"alignment": 8,
"offset": 8
}
],
"size": 24,
"max_out_of_line": 4294967295,
"alignment": 8,
"max_handles": 0
},
{
"name": "test.name/FieldCollision",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 9,
"column": 7
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int32"
},
"name": "field_collision_tag",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 10,
"column": 11
},
"size": 4,
"max_out_of_line": 0,
"alignment": 4,
"offset": 4
}
],
"size": 8,
"max_out_of_line": 0,
"alignment": 4,
"max_handles": 0
}
],
"xunion_declarations": [],
"type_alias_declarations": [],
"declaration_order": [
"test.name/Union",
"test.name/FieldCollision"
],
"declarations": {
"test.name/Union": "union",
"test.name/FieldCollision": "union"
}
}