blob: 5faa3c658c8d8aba48cfbbd0d922325293c79a76 [file] [log] [blame]
{
"name": "test.versions",
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "1",
"expression": "1",
"literal": {
"kind": "numeric",
"value": "1",
"expression": "1"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 1,
"column": 12,
"length": 7
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 1,
"column": 1,
"length": 19
}
}
],
"library_dependencies": [],
"bits_declarations": [
{
"name": "test.versions/Bits",
"naming_context": [
"Bits"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 11,
"column": 6,
"length": 4
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 10,
"column": 12,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 10,
"column": 21,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 10,
"column": 1,
"length": 33
}
}
],
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"mask": "1",
"members": [
{
"name": "A",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 13,
"column": 5,
"length": 1
},
"value": {
"kind": "literal",
"value": "1",
"expression": "1",
"literal": {
"kind": "numeric",
"value": "1",
"expression": "1"
}
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 12,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 12,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 12,
"column": 5,
"length": 33
}
}
]
}
],
"strict": false
}
],
"const_declarations": [
{
"name": "test.versions/ADDED_AT_HEAD",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 63,
"column": 7,
"length": 13
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "identifier",
"value": "18446744073709551615",
"expression": "HEAD",
"identifier": "fidl/HEAD"
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 62,
"column": 12,
"length": 10
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 62,
"column": 1,
"length": 22
}
}
],
"type": {
"kind": "primitive",
"subtype": "bool",
"type_shape_v1": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 1,
"alignment": 1,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"value": {
"kind": "literal",
"value": "true",
"expression": "true",
"literal": {
"kind": "bool",
"value": "true",
"expression": "true"
}
}
},
{
"name": "test.versions/Const",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 8,
"column": 7,
"length": 5
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 7,
"column": 12,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 7,
"column": 21,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 7,
"column": 1,
"length": 33
}
}
],
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"value": {
"kind": "literal",
"value": "0",
"expression": "0",
"literal": {
"kind": "numeric",
"value": "0",
"expression": "0"
}
}
}
],
"enum_declarations": [
{
"name": "test.versions/Enum",
"naming_context": [
"Enum"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 17,
"column": 6,
"length": 4
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 16,
"column": 12,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 16,
"column": 21,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 16,
"column": 1,
"length": 33
}
}
],
"type": "uint32",
"members": [
{
"name": "A",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 19,
"column": 5,
"length": 1
},
"value": {
"kind": "literal",
"value": "1",
"expression": "1",
"literal": {
"kind": "numeric",
"value": "1",
"expression": "1"
}
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 18,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 18,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 18,
"column": 5,
"length": 33
}
}
]
}
],
"strict": false,
"maybe_unknown_value": 4294967295
}
],
"experimental_resource_declarations": [],
"protocol_declarations": [
{
"name": "test.versions/OtherProtocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 44,
"column": 10,
"length": 13
},
"composed_protocols": [],
"methods": []
},
{
"name": "test.versions/Protocol",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 47,
"column": 10,
"length": 8
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 46,
"column": 12,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 46,
"column": 21,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 46,
"column": 1,
"length": 33
}
}
],
"composed_protocols": [
{
"name": "test.versions/OtherProtocol",
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 48,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 48,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 48,
"column": 5,
"length": 33
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 49,
"column": 13,
"length": 13
}
}
],
"methods": [
{
"ordinal": 6231434419097198905,
"name": "Foo",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 52,
"column": 5,
"length": 3
},
"has_request": true,
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 51,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 51,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 51,
"column": 5,
"length": 33
}
}
],
"has_response": false,
"is_composed": false,
"has_error": false
}
]
}
],
"service_declarations": [
{
"name": "test.versions/Service",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 56,
"column": 9,
"length": 7
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 55,
"column": 12,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 55,
"column": 21,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 55,
"column": 1,
"length": 33
}
}
],
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.versions/Protocol",
"nullable": false,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "p",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 58,
"column": 5,
"length": 1
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 57,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 57,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 57,
"column": 5,
"length": 33
}
}
]
}
]
}
],
"struct_declarations": [
{
"name": "test.versions/Struct",
"naming_context": [
"Struct"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 23,
"column": 6,
"length": 6
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 22,
"column": 12,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 22,
"column": 21,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 22,
"column": 1,
"length": 33
}
}
],
"members": [
{
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 25,
"column": 5,
"length": 1
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 24,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 24,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 24,
"column": 5,
"length": 33
}
}
],
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
}
],
"external_struct_declarations": [],
"table_declarations": [
{
"name": "test.versions/Table",
"naming_context": [
"Table"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 29,
"column": 6,
"length": 5
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 28,
"column": 12,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 28,
"column": 21,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 28,
"column": 1,
"length": 33
}
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "x",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 31,
"column": 8,
"length": 1
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 30,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 30,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 30,
"column": 5,
"length": 33
}
}
]
},
{
"ordinal": 2,
"reserved": true,
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 32,
"column": 5,
"length": 49
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 32,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 32,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 32,
"column": 5,
"length": 33
}
}
]
}
],
"strict": false,
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 24,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
}
],
"union_declarations": [
{
"name": "test.versions/Union",
"naming_context": [
"Union"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 37,
"column": 6,
"length": 5
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 36,
"column": 12,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 36,
"column": 21,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 36,
"column": 1,
"length": 33
}
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "x",
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 39,
"column": 8,
"length": 1
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 38,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 38,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 38,
"column": 5,
"length": 33
}
}
]
},
{
"ordinal": 2,
"reserved": true,
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 40,
"column": 5,
"length": 49
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 40,
"column": 16,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 40,
"column": 25,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 40,
"column": 5,
"length": 33
}
}
]
}
],
"strict": false,
"resource": false,
"type_shape_v1": {
"inline_size": 24,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
}
],
"type_alias_declarations": [
{
"name": "test.versions/Alias",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 5,
"column": 7,
"length": 5
},
"maybe_attributes": [
{
"name": "available",
"arguments": [
{
"name": "added",
"type": "uint64",
"value": {
"kind": "literal",
"value": "2",
"expression": "2",
"literal": {
"kind": "numeric",
"value": "2",
"expression": "2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 4,
"column": 12,
"length": 7
}
},
{
"name": "deprecated",
"type": "uint64",
"value": {
"kind": "literal",
"value": "3",
"expression": "3",
"literal": {
"kind": "numeric",
"value": "3",
"expression": "3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 4,
"column": 21,
"length": 12
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/versions.test.fidl",
"line": 4,
"column": 1,
"length": 33
}
}
],
"partial_type_ctor": {
"name": "string",
"args": [],
"nullable": false
}
}
],
"new_type_declarations": [],
"declaration_order": [
"test.versions/Union",
"test.versions/Table",
"test.versions/Struct",
"test.versions/Service",
"test.versions/OtherProtocol",
"test.versions/Protocol",
"test.versions/Enum",
"test.versions/Const",
"test.versions/Bits",
"test.versions/Alias",
"test.versions/ADDED_AT_HEAD"
],
"declarations": {
"test.versions/Bits": "bits",
"test.versions/ADDED_AT_HEAD": "const",
"test.versions/Const": "const",
"test.versions/Enum": "enum",
"test.versions/OtherProtocol": "protocol",
"test.versions/Protocol": "protocol",
"test.versions/Service": "service",
"test.versions/Struct": "struct",
"test.versions/Table": "table",
"test.versions/Union": "union",
"test.versions/Alias": "type_alias"
}
}