| { |
| "version": "0.0.1", |
| "name": "test.name", |
| "library_dependencies": [], |
| "bits_declarations": [], |
| "const_declarations": [ |
| { |
| "name": "test.name/C", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 9, |
| "column": 13 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " const comment #1\n\n const comment #3\n" |
| } |
| ], |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "value": { |
| "kind": "literal", |
| "literal": { |
| "kind": "numeric", |
| "value": "4", |
| "expression": "4" |
| } |
| } |
| } |
| ], |
| "enum_declarations": [], |
| "interface_declarations": [ |
| { |
| "name": "test.name/Interface", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 44, |
| "column": 10 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " interface comment #1\n\n interface comment #3\n" |
| } |
| ], |
| "methods": [ |
| { |
| "ordinal": 1061382220, |
| "generated_ordinal": 1061382220, |
| "name": "Method", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 48, |
| "column": 5 |
| }, |
| "has_request": true, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " method comment #1\n\n method comment #3\n" |
| } |
| ], |
| "maybe_request": [], |
| "maybe_request_size": 16, |
| "maybe_request_alignment": 8, |
| "has_response": false |
| }, |
| { |
| "ordinal": 325918733, |
| "generated_ordinal": 325918733, |
| "name": "OnEvent", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 53, |
| "column": 8 |
| }, |
| "has_request": false, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " event comment #1\n\n event comment #3\n" |
| } |
| ], |
| "has_response": true, |
| "maybe_response": [], |
| "maybe_response_size": 16, |
| "maybe_response_alignment": 8 |
| } |
| ] |
| } |
| ], |
| "struct_declarations": [ |
| { |
| "name": "test.name/Struct", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 14, |
| "column": 8 |
| }, |
| "anonymous": false, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " struct comment #1\n\n struct comment #3\n" |
| } |
| ], |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "name": "Field", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 18, |
| "column": 11 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " struct member comment #1\n\n struct member comment #3\n" |
| } |
| ], |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 0, |
| "max_handles": 0 |
| } |
| ], |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "max_handles": 0 |
| } |
| ], |
| "table_declarations": [ |
| { |
| "name": "test.name/Table", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 34, |
| "column": 7 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " table comment #1\n\n table comment #3\n" |
| } |
| ], |
| "members": [ |
| { |
| "ordinal": 1, |
| "reserved": false, |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "name": "Field", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 38, |
| "column": 14 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " table field comment #1\n\n table field comment #3\n" |
| } |
| ], |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "max_handles": 0 |
| } |
| ], |
| "size": 16, |
| "max_out_of_line": 24, |
| "alignment": 8, |
| "max_handles": 0 |
| } |
| ], |
| "union_declarations": [ |
| { |
| "name": "test.name/Union", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 24, |
| "column": 7 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " union comment #1\n\n union comment #3\n" |
| } |
| ], |
| "members": [ |
| { |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "name": "Field", |
| "location": { |
| "filename": "garnet/go/src/fidl/compiler/backend/typestest/doc_comments.test.fidl", |
| "line": 28, |
| "column": 11 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " union member comment #1\n\n union member comment #3\n" |
| } |
| ], |
| "size": 4, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "offset": 4 |
| } |
| ], |
| "size": 8, |
| "max_out_of_line": 0, |
| "alignment": 4, |
| "max_handles": 0 |
| } |
| ], |
| "xunion_declarations": [], |
| "declaration_order": [ |
| "test.name/Union", |
| "test.name/Table", |
| "test.name/Struct", |
| "test.name/Interface", |
| "test.name/C" |
| ], |
| "declarations": { |
| "test.name/C": "const", |
| "test.name/Interface": "interface", |
| "test.name/Struct": "struct", |
| "test.name/Table": "table", |
| "test.name/Union": "union" |
| } |
| } |