blob: 381d596d33219cc02a4e65e8ba799e39be518c46 [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/NullableUnionStruct",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 36,
"column": 8
},
"anonymous": false,
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.name/Union",
"nullable": true
},
"name": "the_union",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 37,
"column": 12
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
}
],
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 3,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": true
}
}
],
"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": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "Primitive",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 4,
"column": 14
}
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "StringNeedsConstructor",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 5,
"column": 15
}
},
{
"xunion_ordinal": 3,
"reserved": false,
"name": "VectorStringAlsoNeedsConstructor",
"type": {
"kind": "vector",
"element_type": {
"kind": "string",
"nullable": false
},
"nullable": false
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 6,
"column": 23
}
}
],
"strict": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 3,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": true
}
},
{
"name": "test.name/FlexibleUnion",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 9,
"column": 16
},
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "Primitive",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 10,
"column": 14
}
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "StringNeedsConstructor",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 11,
"column": 15
}
},
{
"xunion_ordinal": 3,
"reserved": false,
"name": "VectorStringAlsoNeedsConstructor",
"type": {
"kind": "vector",
"element_type": {
"kind": "string",
"nullable": false
},
"nullable": false
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 12,
"column": 23
}
}
],
"strict": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 3,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": true
}
},
{
"name": "test.name/StrictUnion",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 15,
"column": 14
},
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "Primitive",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 16,
"column": 14
}
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "StringNeedsConstructor",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 17,
"column": 15
}
},
{
"xunion_ordinal": 3,
"reserved": false,
"name": "VectorStringAlsoNeedsConstructor",
"type": {
"kind": "vector",
"element_type": {
"kind": "string",
"nullable": false
},
"nullable": false
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 18,
"column": 23
}
}
],
"strict": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 3,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": true
}
},
{
"name": "test.name/FieldCollision",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 21,
"column": 7
},
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "field_collision_tag",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 22,
"column": 14
}
}
],
"strict": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": true
}
},
{
"name": "test.name/ExplicitUnion",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 25,
"column": 7
},
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "Primitive",
"type": {
"kind": "primitive",
"subtype": "int32"
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 27,
"column": 14
}
},
{
"xunion_ordinal": 2,
"reserved": true,
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 26,
"column": 5
}
},
{
"xunion_ordinal": 3,
"reserved": false,
"name": "StringNeedsConstructor",
"type": {
"kind": "string",
"nullable": false
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 28,
"column": 15
}
}
],
"strict": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": true
}
},
{
"name": "test.name/ReverseOrdinalUnion",
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 31,
"column": 7
},
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "first",
"type": {
"kind": "primitive",
"subtype": "uint32"
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 33,
"column": 15
}
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "second",
"type": {
"kind": "primitive",
"subtype": "uint32"
},
"location": {
"filename": "garnet/go/src/fidl/compiler/backend/typestest/union.test.fidl",
"line": 32,
"column": 15
}
}
],
"strict": true,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": true
}
}
],
"xunion_declarations": [],
"type_alias_declarations": [],
"declaration_order": [
"test.name/Union",
"test.name/StrictUnion",
"test.name/ReverseOrdinalUnion",
"test.name/NullableUnionStruct",
"test.name/FlexibleUnion",
"test.name/FieldCollision",
"test.name/ExplicitUnion"
],
"declarations": {
"test.name/NullableUnionStruct": "struct",
"test.name/Union": "union",
"test.name/FlexibleUnion": "union",
"test.name/StrictUnion": "union",
"test.name/FieldCollision": "union",
"test.name/ExplicitUnion": "union",
"test.name/ReverseOrdinalUnion": "union"
}
}