blob: 5175435a51a0ca4947b2b018ca12a0683c3ce426 [file] [log] [blame]
{
"version": "0.0.1",
"name": "fidl.test.json",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"interface_declarations": [],
"service_declarations": [],
"struct_declarations": [
{
"name": "fidl.test.json/Pizza",
"location": {
"filename": "union.test.fidl",
"line": 3,
"column": 8
},
"anonymous": false,
"members": [
{
"type": {
"kind": "vector",
"element_type": {
"kind": "string",
"maybe_element_count": 16,
"nullable": false
},
"nullable": false
},
"name": "toppings",
"location": {
"filename": "union.test.fidl",
"line": 4,
"column": 23
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
}
],
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": false
}
},
{
"name": "fidl.test.json/Pasta",
"location": {
"filename": "union.test.fidl",
"line": 7,
"column": 8
},
"anonymous": false,
"members": [
{
"type": {
"kind": "string",
"maybe_element_count": 16,
"nullable": false
},
"name": "sauce",
"location": {
"filename": "union.test.fidl",
"line": 8,
"column": 15
},
"field_shape_v1": {
"offset": 0,
"padding": 0
}
}
],
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 16,
"has_padding": true,
"has_flexible_envelope": false,
"contains_union": false
}
}
],
"table_declarations": [],
"union_declarations": [
{
"name": "fidl.test.json/PizzaOrPasta",
"location": {
"filename": "union.test.fidl",
"line": 11,
"column": 7
},
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "pizza",
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/Pizza",
"nullable": false
},
"location": {
"filename": "union.test.fidl",
"line": 12,
"column": 14
}
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "pasta",
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/Pasta",
"nullable": false
},
"location": {
"filename": "union.test.fidl",
"line": 13,
"column": 14
}
}
],
"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": "fidl.test.json/ExplicitPizzaOrPasta",
"location": {
"filename": "union.test.fidl",
"line": 16,
"column": 7
},
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "pizza",
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/Pizza",
"nullable": false
},
"location": {
"filename": "union.test.fidl",
"line": 19,
"column": 14
}
},
{
"xunion_ordinal": 2,
"reserved": true,
"location": {
"filename": "union.test.fidl",
"line": 18,
"column": 5
}
},
{
"xunion_ordinal": 3,
"reserved": true,
"location": {
"filename": "union.test.fidl",
"line": 17,
"column": 5
}
},
{
"xunion_ordinal": 4,
"reserved": false,
"name": "pasta",
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/Pasta",
"nullable": false
},
"location": {
"filename": "union.test.fidl",
"line": 20,
"column": 14
}
}
],
"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": "fidl.test.json/FlexiblePizzaOrPasta",
"location": {
"filename": "union.test.fidl",
"line": 23,
"column": 16
},
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "pizza",
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/Pizza",
"nullable": false
},
"location": {
"filename": "union.test.fidl",
"line": 24,
"column": 14
}
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "pasta",
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/Pasta",
"nullable": false
},
"location": {
"filename": "union.test.fidl",
"line": 25,
"column": 14
}
}
],
"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": "fidl.test.json/StrictPizzaOrPasta",
"location": {
"filename": "union.test.fidl",
"line": 28,
"column": 14
},
"members": [
{
"xunion_ordinal": 1,
"reserved": false,
"name": "pizza",
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/Pizza",
"nullable": false
},
"location": {
"filename": "union.test.fidl",
"line": 29,
"column": 14
}
},
{
"xunion_ordinal": 2,
"reserved": false,
"name": "pasta",
"type": {
"kind": "identifier",
"identifier": "fidl.test.json/Pasta",
"nullable": false
},
"location": {
"filename": "union.test.fidl",
"line": 30,
"column": 14
}
}
],
"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
}
}
],
"xunion_declarations": [],
"type_alias_declarations": [],
"declaration_order": [
"fidl.test.json/Pizza",
"fidl.test.json/Pasta",
"fidl.test.json/StrictPizzaOrPasta",
"fidl.test.json/PizzaOrPasta",
"fidl.test.json/FlexiblePizzaOrPasta",
"fidl.test.json/ExplicitPizzaOrPasta"
],
"declarations": {
"fidl.test.json/Pizza": "struct",
"fidl.test.json/Pasta": "struct",
"fidl.test.json/PizzaOrPasta": "union",
"fidl.test.json/ExplicitPizzaOrPasta": "union",
"fidl.test.json/FlexiblePizzaOrPasta": "union",
"fidl.test.json/StrictPizzaOrPasta": "union"
}
}