blob: d086b635c97b7c048fb7ed6d84de1d7ce3f4bd7e [file] [log] [blame]
{
"name": "test.importedconstvalues",
"platform": "unversioned",
"available": {
"fuchsia": [
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"HEAD"
]
},
"experiments": [
"output_index_json"
],
"library_dependencies": [
{
"name": "test.dependent",
"declarations": {
"test.dependent/MyBits": {
"kind": "bits"
},
"test.dependent/MY_ALIASED_STRING": {
"kind": "const"
},
"test.dependent/MY_BYTE": {
"kind": "const"
},
"test.dependent/MY_FALSE": {
"kind": "const"
},
"test.dependent/MY_FLOAT32": {
"kind": "const"
},
"test.dependent/MY_FLOAT64": {
"kind": "const"
},
"test.dependent/MY_INT16": {
"kind": "const"
},
"test.dependent/MY_INT32": {
"kind": "const"
},
"test.dependent/MY_INT64": {
"kind": "const"
},
"test.dependent/MY_INT8": {
"kind": "const"
},
"test.dependent/MY_STRING": {
"kind": "const"
},
"test.dependent/MY_TRUE": {
"kind": "const"
},
"test.dependent/MY_UINT16": {
"kind": "const"
},
"test.dependent/MY_UINT32": {
"kind": "const"
},
"test.dependent/MY_UINT64": {
"kind": "const"
},
"test.dependent/MY_UINT8": {
"kind": "const"
},
"test.dependent/MyEnum": {
"kind": "enum"
},
"test.dependent/aliased_string": {
"kind": "alias"
}
}
}
],
"bits_declarations": [],
"const_declarations": [
{
"name": "test.importedconstvalues/BITS_MEMBER",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 11,
"column": 7,
"length": 11
},
"deprecated": false,
"type": {
"kind": "identifier",
"identifier": "test.dependent/MyBits",
"nullable": false,
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
}
},
"value": {
"kind": "identifier",
"value": "1",
"expression": "test.dependent.MyBits.MEMBER",
"identifier": "test.dependent/MyBits.MEMBER"
}
},
{
"name": "test.importedconstvalues/BITS_MEMBER_PRIMITIVE",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 16,
"column": 7,
"length": 21
},
"deprecated": false,
"maybe_attributes": [
{
"name": "bindings_denylist",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": "hlcpp, llcpp, go, dart, libfuzzer",
"expression": "\"hlcpp, llcpp, go, dart, libfuzzer\"",
"literal": {
"kind": "string",
"value": "hlcpp, llcpp, go, dart, libfuzzer",
"expression": "\"hlcpp, llcpp, go, dart, libfuzzer\""
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 15,
"column": 20,
"length": 35
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 15,
"column": 1,
"length": 55
}
}
],
"type": {
"kind": "primitive",
"subtype": "uint8",
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
}
},
"value": {
"kind": "identifier",
"value": "1",
"expression": "test.dependent.MyBits.MEMBER",
"identifier": "test.dependent/MyBits.MEMBER"
}
},
{
"name": "test.importedconstvalues/ENUM_MEMBER",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 12,
"column": 7,
"length": 11
},
"deprecated": false,
"type": {
"kind": "identifier",
"identifier": "test.dependent/MyEnum",
"nullable": false,
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
}
},
"value": {
"kind": "identifier",
"value": "1",
"expression": "test.dependent.MyEnum.MEMBER",
"identifier": "test.dependent/MyEnum.MEMBER"
}
},
{
"name": "test.importedconstvalues/ENUM_MEMBER_PRIMITIVE",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 20,
"column": 7,
"length": 21
},
"deprecated": false,
"maybe_attributes": [
{
"name": "bindings_denylist",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": "hlcpp, llcpp, go, dart, libfuzzer",
"expression": "\"hlcpp, llcpp, go, dart, libfuzzer\"",
"literal": {
"kind": "string",
"value": "hlcpp, llcpp, go, dart, libfuzzer",
"expression": "\"hlcpp, llcpp, go, dart, libfuzzer\""
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 19,
"column": 20,
"length": 35
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 19,
"column": 1,
"length": 55
}
}
],
"type": {
"kind": "primitive",
"subtype": "uint8",
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
}
},
"value": {
"kind": "identifier",
"value": "1",
"expression": "test.dependent.MyEnum.MEMBER",
"identifier": "test.dependent/MyEnum.MEMBER"
}
}
],
"enum_declarations": [],
"experimental_resource_declarations": [],
"protocol_declarations": [],
"service_declarations": [],
"struct_declarations": [
{
"name": "test.importedconstvalues/MyStruct",
"naming_context": [
"MyStruct"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 9,
"column": 6,
"length": 8
},
"deprecated": false,
"maybe_attributes": [
{
"name": "attr1",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "identifier",
"value": "foo",
"expression": "test.dependent.MY_STRING",
"identifier": "test.dependent/MY_STRING"
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 5,
"column": 8,
"length": 24
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 5,
"column": 1,
"length": 32
}
},
{
"name": "attr2",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "identifier",
"value": "bar",
"expression": "test.dependent.MY_ALIASED_STRING",
"identifier": "test.dependent/MY_ALIASED_STRING"
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 6,
"column": 8,
"length": 32
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 6,
"column": 1,
"length": 40
}
},
{
"name": "attr3",
"arguments": [
{
"name": "value",
"type": "bool",
"value": {
"kind": "identifier",
"value": "true",
"expression": "test.dependent.MY_TRUE",
"identifier": "test.dependent/MY_TRUE"
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 7,
"column": 8,
"length": 22
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 7,
"column": 1,
"length": 30
}
},
{
"name": "attr4",
"arguments": [
{
"name": "value",
"type": "bool",
"value": {
"kind": "identifier",
"value": "false",
"expression": "test.dependent.MY_FALSE",
"identifier": "test.dependent/MY_FALSE"
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 8,
"column": 8,
"length": 23
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/imported_const_values/example.test.fidl",
"line": 8,
"column": 1,
"length": 31
}
}
],
"members": [],
"resource": false,
"is_empty_success_struct": false,
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_flexible_envelope": false
}
}
],
"external_struct_declarations": [],
"table_declarations": [],
"union_declarations": [],
"alias_declarations": [],
"new_type_declarations": [],
"declaration_order": [
"test.importedconstvalues/BITS_MEMBER",
"test.importedconstvalues/BITS_MEMBER_PRIMITIVE",
"test.importedconstvalues/ENUM_MEMBER",
"test.importedconstvalues/ENUM_MEMBER_PRIMITIVE",
"test.importedconstvalues/MyStruct"
],
"declarations": {
"test.importedconstvalues/BITS_MEMBER": "const",
"test.importedconstvalues/BITS_MEMBER_PRIMITIVE": "const",
"test.importedconstvalues/ENUM_MEMBER": "const",
"test.importedconstvalues/ENUM_MEMBER_PRIMITIVE": "const",
"test.importedconstvalues/MyStruct": "struct"
}
}