| { |
| "version": "0.0.1", |
| "name": "test.name", |
| "library_dependencies": [], |
| "bits_declarations": [], |
| "const_declarations": [], |
| "enum_declarations": [], |
| "interface_declarations": [], |
| "struct_declarations": [], |
| "table_declarations": [], |
| "union_declarations": [], |
| "xunion_declarations": [ |
| { |
| "name": "test.name/OlderSimpleUnion", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/xunion.test.fidl", |
| "line": 3, |
| "column": 7 |
| }, |
| "members": [ |
| { |
| "ordinal": 1026732503, |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "i", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/xunion.test.fidl", |
| "line": 4, |
| "column": 8 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 0 |
| }, |
| { |
| "ordinal": 1362546558, |
| "type": { |
| "kind": "primitive", |
| "subtype": "float32" |
| }, |
| "name": "f", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/xunion.test.fidl", |
| "line": 5, |
| "column": 10 |
| }, |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 0 |
| } |
| ], |
| "size": 24, |
| "max_out_of_line": 8, |
| "alignment": 8, |
| "max_handles": 0 |
| }, |
| { |
| "name": "test.name/NewerSimpleUnion", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/xunion.test.fidl", |
| "line": 8, |
| "column": 7 |
| }, |
| "members": [ |
| { |
| "ordinal": 693944286, |
| "type": { |
| "kind": "primitive", |
| "subtype": "int64" |
| }, |
| "name": "i", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/xunion.test.fidl", |
| "line": 11, |
| "column": 8 |
| }, |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 8, |
| "offset": 0 |
| }, |
| { |
| "ordinal": 473666119, |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "name": "s", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/xunion.test.fidl", |
| "line": 13, |
| "column": 9 |
| }, |
| "size": 16, |
| "max_out_of_line": 4294967295, |
| "alignment": 8, |
| "offset": 0 |
| }, |
| { |
| "ordinal": 1815655055, |
| "type": { |
| "kind": "vector", |
| "element_type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "nullable": false |
| }, |
| "name": "v", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/xunion.test.fidl", |
| "line": 14, |
| "column": 17 |
| }, |
| "size": 16, |
| "max_out_of_line": 4294967295, |
| "alignment": 8, |
| "offset": 0 |
| } |
| ], |
| "size": 24, |
| "max_out_of_line": 4294967295, |
| "alignment": 8, |
| "max_handles": 0 |
| } |
| ], |
| "declaration_order": [ |
| "test.name/OlderSimpleUnion", |
| "test.name/NewerSimpleUnion" |
| ], |
| "declarations": { |
| "test.name/OlderSimpleUnion": "xunion", |
| "test.name/NewerSimpleUnion": "xunion" |
| } |
| } |