blob: 7383e36b5f9c3616f6d233e19b863a5f90e6c9b9 [file] [log] [blame]
{
"name": "test.inheritance",
"library_dependencies": [],
"bits_declarations": [],
"const_declarations": [],
"enum_declarations": [],
"experimental_resource_declarations": [],
"protocol_declarations": [
{
"name": "test.inheritance/sub",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 11,
"column": 10,
"length": 3
},
"composed_protocols": [
{
"name": "test.inheritance/super",
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " doc comment on compose\n",
"expression": "/// doc comment on compose",
"literal": {
"kind": "string",
"value": " doc comment on compose\n",
"expression": "/// doc comment on compose"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 12,
"column": 5,
"length": 26
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 12,
"column": 5,
"length": 26
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 13,
"column": 13,
"length": 5
}
}
],
"methods": [
{
"ordinal": 7540745593380780216,
"name": "foo",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 4,
"column": 5,
"length": 3
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.inheritance/SuperFooRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.inheritance/SuperFooTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"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": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": true,
"has_error": false
}
]
},
{
"name": "test.inheritance/super",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 3,
"column": 10,
"length": 5
},
"composed_protocols": [],
"methods": [
{
"ordinal": 7540745593380780216,
"name": "foo",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 4,
"column": 5,
"length": 3
},
"has_request": true,
"maybe_request_payload": {
"kind": "identifier",
"identifier": "test.inheritance/SuperFooRequest",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"has_response": true,
"maybe_response_payload": {
"kind": "identifier",
"identifier": "test.inheritance/SuperFooTopResponse",
"nullable": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"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": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"is_composed": false,
"has_error": false
}
]
}
],
"service_declarations": [],
"struct_declarations": [
{
"name": "test.inheritance/SuperFooRequest",
"naming_context": [
"super",
"foo",
"Request"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 4,
"column": 9,
"length": 32
},
"members": [
{
"type": {
"kind": "string",
"nullable": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "s",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 5,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 4294967295,
"has_padding": true,
"has_envelope": false,
"has_flexible_envelope": false
}
},
{
"name": "test.inheritance/SuperFooTopResponse",
"naming_context": [
"super",
"foo",
"Response"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 6,
"column": 12,
"length": 31
},
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int64",
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"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": 8,
"alignment": 8,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "y",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/inheritance.test.fidl",
"line": 7,
"column": 9,
"length": 1
},
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"offset": 0,
"padding": 0
}
}
],
"resource": false,
"type_shape_v1": {
"inline_size": 8,
"alignment": 8,
"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": 8,
"alignment": 8,
"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": [],
"union_declarations": [],
"type_alias_declarations": [],
"declaration_order": [
"test.inheritance/SuperFooTopResponse",
"test.inheritance/SuperFooRequest",
"test.inheritance/super",
"test.inheritance/sub"
],
"declarations": {
"test.inheritance/sub": "protocol",
"test.inheritance/super": "protocol",
"test.inheritance/SuperFooRequest": "struct",
"test.inheritance/SuperFooTopResponse": "struct"
}
}