| { |
| "version": "0.0.1", |
| "name": "fidl.test.json", |
| "library_dependencies": [], |
| "bits_declarations": [], |
| "const_declarations": [], |
| "enum_declarations": [], |
| "interface_declarations": [ |
| { |
| "name": "fidl.test.json/Example", |
| "location": { |
| "filename": "error.test.fidl", |
| "line": 3, |
| "column": 10 |
| }, |
| "methods": [ |
| { |
| "ordinal": 5882788358547046400, |
| "generated_ordinal": 841977834905137819, |
| "name": "foo", |
| "location": { |
| "filename": "error.test.fidl", |
| "line": 4, |
| "column": 5 |
| }, |
| "has_request": true, |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "s", |
| "location": { |
| "filename": "error.test.fidl", |
| "line": 4, |
| "column": 16 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "maybe_request_payload": "fidl.test.json/SomeLongAnonymousPrefix0", |
| "maybe_request_type_shape_v1": { |
| "inline_size": 32, |
| "alignment": 8, |
| "depth": 1, |
| "max_handles": 0, |
| "max_out_of_line": 4294967295, |
| "has_padding": true, |
| "has_flexible_envelope": false, |
| "contains_union": false |
| }, |
| "has_response": true, |
| "maybe_response": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "fidl.test.json/Example_foo_Result", |
| "nullable": false |
| }, |
| "name": "result", |
| "location": { |
| "filename": "generated", |
| "line": 6, |
| "column": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 0 |
| } |
| } |
| ], |
| "maybe_response_payload": "fidl.test.json/SomeLongAnonymousPrefix1", |
| "maybe_response_type_shape_v1": { |
| "inline_size": 40, |
| "alignment": 8, |
| "depth": 1, |
| "max_handles": 0, |
| "max_out_of_line": 8, |
| "has_padding": true, |
| "has_flexible_envelope": false, |
| "contains_union": true |
| }, |
| "is_composed": false |
| } |
| ] |
| } |
| ], |
| "service_declarations": [], |
| "struct_declarations": [ |
| { |
| "name": "fidl.test.json/SomeLongAnonymousPrefix0", |
| "location": { |
| "filename": "generated", |
| "line": 1, |
| "column": 1 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "s", |
| "location": { |
| "filename": "error.test.fidl", |
| "line": 4, |
| "column": 16 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "type_shape_v1": { |
| "inline_size": 16, |
| "alignment": 8, |
| "depth": 1, |
| "max_handles": 0, |
| "max_out_of_line": 4294967295, |
| "has_padding": true, |
| "has_flexible_envelope": false, |
| "contains_union": false |
| } |
| }, |
| { |
| "name": "fidl.test.json/Example_foo_Response", |
| "location": { |
| "filename": "generated", |
| "line": 2, |
| "column": 1 |
| }, |
| "anonymous": false, |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "y", |
| "location": { |
| "filename": "error.test.fidl", |
| "line": 4, |
| "column": 29 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "type_shape_v1": { |
| "inline_size": 8, |
| "alignment": 8, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_flexible_envelope": false, |
| "contains_union": false |
| } |
| }, |
| { |
| "name": "fidl.test.json/SomeLongAnonymousPrefix1", |
| "location": { |
| "filename": "generated", |
| "line": 7, |
| "column": 1 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "fidl.test.json/Example_foo_Result", |
| "nullable": false |
| }, |
| "name": "result", |
| "location": { |
| "filename": "generated", |
| "line": 6, |
| "column": 1 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 0 |
| } |
| } |
| ], |
| "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 |
| } |
| } |
| ], |
| "table_declarations": [], |
| "union_declarations": [ |
| { |
| "name": "fidl.test.json/Example_foo_Result", |
| "location": { |
| "filename": "generated", |
| "line": 3, |
| "column": 1 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Result", |
| "value": "" |
| } |
| ], |
| "members": [ |
| { |
| "xunion_ordinal": 1, |
| "reserved": false, |
| "name": "response", |
| "type": { |
| "kind": "identifier", |
| "identifier": "fidl.test.json/Example_foo_Response", |
| "nullable": false |
| }, |
| "location": { |
| "filename": "generated", |
| "line": 4, |
| "column": 1 |
| } |
| }, |
| { |
| "xunion_ordinal": 2, |
| "reserved": false, |
| "name": "err", |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "location": { |
| "filename": "generated", |
| "line": 5, |
| "column": 1 |
| } |
| } |
| ], |
| "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": [ |
| "fidl.test.json/Example_foo_Response", |
| "fidl.test.json/Example_foo_Result", |
| "fidl.test.json/Example" |
| ], |
| "declarations": { |
| "fidl.test.json/Example": "interface", |
| "fidl.test.json/SomeLongAnonymousPrefix0": "struct", |
| "fidl.test.json/Example_foo_Response": "struct", |
| "fidl.test.json/SomeLongAnonymousPrefix1": "struct", |
| "fidl.test.json/Example_foo_Result": "union" |
| } |
| } |