| { |
| "version": "0.0.1", |
| "name": "fidl.test.placementofattributes", |
| "library_dependencies": [ |
| { |
| "name": "exampleusing", |
| "declarations": { |
| "exampleusing/Empty": { |
| "kind": "struct", |
| "resource": false |
| } |
| } |
| } |
| ], |
| "bits_declarations": [ |
| { |
| "name": "fidl.test.placementofattributes/ExampleBits", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 7, |
| "column": 6, |
| "length": 11 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnBits", |
| "value": "" |
| } |
| ], |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "mask": "1", |
| "members": [ |
| { |
| "name": "MEMBER", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 9, |
| "column": 5, |
| "length": 6 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1", |
| "expression": "1", |
| "literal": { |
| "kind": "numeric", |
| "value": "1", |
| "expression": "1" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnBitsMember", |
| "value": "" |
| } |
| ] |
| } |
| ], |
| "strict": true |
| } |
| ], |
| "const_declarations": [ |
| { |
| "name": "fidl.test.placementofattributes/EXAMPLE_CONST", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 13, |
| "column": 14, |
| "length": 13 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnConst", |
| "value": "" |
| } |
| ], |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "0", |
| "expression": "0", |
| "literal": { |
| "kind": "numeric", |
| "value": "0", |
| "expression": "0" |
| } |
| } |
| } |
| ], |
| "enum_declarations": [ |
| { |
| "name": "fidl.test.placementofattributes/ExampleEnum", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 16, |
| "column": 6, |
| "length": 11 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnEnum", |
| "value": "" |
| } |
| ], |
| "type": "uint32", |
| "members": [ |
| { |
| "name": "MEMBER", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 18, |
| "column": 5, |
| "length": 6 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1", |
| "expression": "1", |
| "literal": { |
| "kind": "numeric", |
| "value": "1", |
| "expression": "1" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnEnumMember", |
| "value": "" |
| } |
| ] |
| } |
| ], |
| "strict": true |
| } |
| ], |
| "experimental_resource_declarations": [], |
| "interface_declarations": [ |
| { |
| "name": "fidl.test.placementofattributes/ExampleProtocol", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 22, |
| "column": 10, |
| "length": 15 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnProtocol", |
| "value": "" |
| } |
| ], |
| "methods": [ |
| { |
| "ordinal": 2341079615635566980, |
| "name": "Method", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 24, |
| "column": 5, |
| "length": 6 |
| }, |
| "has_request": true, |
| "maybe_attributes": [ |
| { |
| "name": "OnMethod", |
| "value": "" |
| } |
| ], |
| "maybe_request": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "exampleusing/Empty", |
| "nullable": false |
| }, |
| "name": "arg", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 24, |
| "column": 31, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 16, |
| "padding": 7 |
| } |
| } |
| ], |
| "maybe_request_payload": "fidl.test.placementofattributes/SomeLongAnonymousPrefix0", |
| "maybe_request_type_shape_v1": { |
| "inline_size": 24, |
| "alignment": 8, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": true, |
| "has_flexible_envelope": false |
| }, |
| "has_response": false, |
| "is_composed": false |
| } |
| ] |
| } |
| ], |
| "service_declarations": [], |
| "struct_declarations": [ |
| { |
| "name": "fidl.test.placementofattributes/SomeLongAnonymousPrefix0", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 24, |
| "column": 11, |
| "length": 24 |
| }, |
| "anonymous": true, |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "exampleusing/Empty", |
| "nullable": false |
| }, |
| "name": "arg", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 24, |
| "column": 31, |
| "length": 3 |
| }, |
| "field_shape_v1": { |
| "offset": 0, |
| "padding": 7 |
| } |
| } |
| ], |
| "resource": false, |
| "type_shape_v1": { |
| "inline_size": 8, |
| "alignment": 8, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": true, |
| "has_flexible_envelope": false |
| } |
| }, |
| { |
| "name": "fidl.test.placementofattributes/ExampleStruct", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 28, |
| "column": 8, |
| "length": 13 |
| }, |
| "anonymous": false, |
| "maybe_attributes": [ |
| { |
| "name": "OnStruct", |
| "value": "" |
| } |
| ], |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "name": "member", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 30, |
| "column": 12, |
| "length": 6 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnStructMember", |
| "value": "" |
| } |
| ], |
| "field_shape_v1": { |
| "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_flexible_envelope": false |
| } |
| } |
| ], |
| "table_declarations": [ |
| { |
| "name": "fidl.test.placementofattributes/ExampleTable", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 34, |
| "column": 7, |
| "length": 12 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnTable", |
| "value": "" |
| } |
| ], |
| "members": [ |
| { |
| "ordinal": 1, |
| "reserved": false, |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "name": "member", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 36, |
| "column": 15, |
| "length": 6 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnTableMember", |
| "value": "" |
| } |
| ] |
| } |
| ], |
| "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_flexible_envelope": true |
| } |
| } |
| ], |
| "union_declarations": [ |
| { |
| "name": "fidl.test.placementofattributes/ExampleUnion", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 43, |
| "column": 7, |
| "length": 12 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnUnion", |
| "value": "" |
| } |
| ], |
| "members": [ |
| { |
| "ordinal": 1, |
| "reserved": false, |
| "name": "variant", |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 45, |
| "column": 15, |
| "length": 7 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnUnionMember", |
| "value": "" |
| } |
| ] |
| } |
| ], |
| "strict": true, |
| "resource": false, |
| "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 |
| } |
| }, |
| { |
| "name": "fidl.test.placementofattributes/ExampleXUnion", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 49, |
| "column": 16, |
| "length": 13 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnXUnion", |
| "value": "" |
| } |
| ], |
| "members": [ |
| { |
| "ordinal": 1, |
| "reserved": false, |
| "name": "variant", |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 51, |
| "column": 15, |
| "length": 7 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnXUnionMember", |
| "value": "" |
| } |
| ] |
| } |
| ], |
| "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_flexible_envelope": true |
| } |
| } |
| ], |
| "type_alias_declarations": [ |
| { |
| "name": "fidl.test.placementofattributes/TypeAlias", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/placement_of_attributes/example.test.fidl", |
| "line": 40, |
| "column": 7, |
| "length": 9 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "OnTypeAlias", |
| "value": "" |
| } |
| ], |
| "partial_type_ctor": { |
| "name": "uint32", |
| "args": [], |
| "nullable": false |
| } |
| } |
| ], |
| "declaration_order": [ |
| "fidl.test.placementofattributes/TypeAlias", |
| "fidl.test.placementofattributes/ExampleXUnion", |
| "fidl.test.placementofattributes/ExampleUnion", |
| "fidl.test.placementofattributes/ExampleTable", |
| "fidl.test.placementofattributes/ExampleStruct", |
| "fidl.test.placementofattributes/ExampleEnum", |
| "fidl.test.placementofattributes/ExampleBits", |
| "fidl.test.placementofattributes/EXAMPLE_CONST", |
| "fidl.test.placementofattributes/ExampleProtocol" |
| ], |
| "declarations": { |
| "fidl.test.placementofattributes/ExampleBits": "bits", |
| "fidl.test.placementofattributes/EXAMPLE_CONST": "const", |
| "fidl.test.placementofattributes/ExampleEnum": "enum", |
| "fidl.test.placementofattributes/ExampleProtocol": "interface", |
| "fidl.test.placementofattributes/SomeLongAnonymousPrefix0": "struct", |
| "fidl.test.placementofattributes/ExampleStruct": "struct", |
| "fidl.test.placementofattributes/ExampleTable": "table", |
| "fidl.test.placementofattributes/ExampleUnion": "union", |
| "fidl.test.placementofattributes/ExampleXUnion": "union", |
| "fidl.test.placementofattributes/TypeAlias": "type_alias" |
| } |
| } |