| { |
| "version": "0.0.1", |
| "name": "fidl.test.doccomments", |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " library comment #1\n\n library comment #2\n" |
| } |
| ], |
| "library_dependencies": [], |
| "bits_declarations": [ |
| { |
| "name": "fidl.test.doccomments/MyStrictBits", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 9, |
| "column": 13, |
| "length": 12 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " strict bits comment #1\n\n strict bits comment #2\n" |
| } |
| ], |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "mask": "3", |
| "members": [ |
| { |
| "name": "MY_FIRST_BIT", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 13, |
| "column": 5, |
| "length": 12 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1", |
| "expression": "1", |
| "literal": { |
| "kind": "numeric", |
| "value": "1", |
| "expression": "1" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " MY_FIRST_BIT member comment #1\n\n MY_FIRST_BIT member comment #3\n" |
| } |
| ] |
| }, |
| { |
| "name": "MY_OTHER_BIT", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 17, |
| "column": 5, |
| "length": 12 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "2", |
| "expression": "2", |
| "literal": { |
| "kind": "numeric", |
| "value": "2", |
| "expression": "2" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " MY_OTHER_BIT member comment #1\n\n MY_OTHER_BIT member comment #3\n" |
| } |
| ] |
| } |
| ], |
| "strict": true |
| }, |
| { |
| "name": "fidl.test.doccomments/MyFlexibleBits", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 23, |
| "column": 15, |
| "length": 14 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " flexible bits comment #1\n\n flexible bits comment #2\n" |
| } |
| ], |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "mask": "3", |
| "members": [ |
| { |
| "name": "MY_FIRST_BIT", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 27, |
| "column": 5, |
| "length": 12 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1", |
| "expression": "1", |
| "literal": { |
| "kind": "numeric", |
| "value": "1", |
| "expression": "1" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " MY_FIRST_BIT member comment #1\n\n MY_FIRST_BIT member comment #3\n" |
| } |
| ] |
| }, |
| { |
| "name": "MY_OTHER_BIT", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 31, |
| "column": 5, |
| "length": 12 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "2", |
| "expression": "2", |
| "literal": { |
| "kind": "numeric", |
| "value": "2", |
| "expression": "2" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " MY_OTHER_BIT member comment #1\n\n MY_OTHER_BIT member comment #3\n" |
| } |
| ] |
| } |
| ], |
| "strict": false |
| } |
| ], |
| "const_declarations": [ |
| { |
| "name": "fidl.test.doccomments/C", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 37, |
| "column": 13, |
| "length": 1 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " const comment #1\n\n const comment #3\n" |
| } |
| ], |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "4", |
| "expression": "4", |
| "literal": { |
| "kind": "numeric", |
| "value": "4", |
| "expression": "4" |
| } |
| } |
| } |
| ], |
| "enum_declarations": [ |
| { |
| "name": "fidl.test.doccomments/MyStrictEnum", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 42, |
| "column": 13, |
| "length": 12 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " strict enum comment #1.\n\n strict enum comment #2.\n" |
| } |
| ], |
| "type": "uint32", |
| "members": [ |
| { |
| "name": "FOO", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 46, |
| "column": 5, |
| "length": 3 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1", |
| "expression": "1", |
| "literal": { |
| "kind": "numeric", |
| "value": "1", |
| "expression": "1" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " FOO member comment #1\n\n FOO member comment #3\n" |
| } |
| ] |
| }, |
| { |
| "name": "BAR", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 51, |
| "column": 5, |
| "length": 3 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "2", |
| "expression": "2", |
| "literal": { |
| "kind": "numeric", |
| "value": "2", |
| "expression": "2" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " BAR member comment #1\n\n BAR member comment #3\n" |
| } |
| ] |
| } |
| ], |
| "strict": true |
| }, |
| { |
| "name": "fidl.test.doccomments/MyFlexibleEnum", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 57, |
| "column": 15, |
| "length": 14 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " flexible enum comment #1.\n\n flexible enum comment #2.\n" |
| } |
| ], |
| "type": "uint32", |
| "members": [ |
| { |
| "name": "FOO", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 61, |
| "column": 5, |
| "length": 3 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1", |
| "expression": "1", |
| "literal": { |
| "kind": "numeric", |
| "value": "1", |
| "expression": "1" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " FOO member comment #1\n\n FOO member comment #3\n" |
| } |
| ] |
| }, |
| { |
| "name": "BAR", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 66, |
| "column": 5, |
| "length": 3 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "2", |
| "expression": "2", |
| "literal": { |
| "kind": "numeric", |
| "value": "2", |
| "expression": "2" |
| } |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " BAR member comment #1\n\n BAR member comment #3\n" |
| } |
| ] |
| } |
| ], |
| "strict": false, |
| "maybe_unknown_value": 4294967295 |
| } |
| ], |
| "experimental_resource_declarations": [], |
| "interface_declarations": [ |
| { |
| "name": "fidl.test.doccomments/Interface", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 112, |
| "column": 10, |
| "length": 9 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " interface comment #1\n\n interface comment #3\n" |
| } |
| ], |
| "methods": [ |
| { |
| "ordinal": 6649887292072346213, |
| "name": "Method", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 116, |
| "column": 5, |
| "length": 6 |
| }, |
| "has_request": true, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " method comment #1\n\n method comment #3\n" |
| } |
| ], |
| "maybe_request": [], |
| "maybe_request_type_shape_v1": { |
| "inline_size": 16, |
| "alignment": 8, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_flexible_envelope": false |
| }, |
| "has_response": false, |
| "is_composed": false |
| }, |
| { |
| "ordinal": 3999525675942213370, |
| "name": "OnEvent", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 121, |
| "column": 8, |
| "length": 7 |
| }, |
| "has_request": false, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " event comment #1\n\n event comment #3\n" |
| } |
| ], |
| "has_response": true, |
| "maybe_response": [], |
| "maybe_response_type_shape_v1": { |
| "inline_size": 16, |
| "alignment": 8, |
| "depth": 0, |
| "max_handles": 0, |
| "max_out_of_line": 0, |
| "has_padding": false, |
| "has_flexible_envelope": false |
| }, |
| "is_composed": false |
| } |
| ] |
| } |
| ], |
| "service_declarations": [ |
| { |
| "name": "fidl.test.doccomments/Service", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 127, |
| "column": 9, |
| "length": 7 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " service comment #1\n\n service comment #3\n" |
| } |
| ], |
| "members": [ |
| { |
| "type": { |
| "kind": "identifier", |
| "identifier": "fidl.test.doccomments/Interface", |
| "nullable": false |
| }, |
| "name": "interface", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 131, |
| "column": 15, |
| "length": 9 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " member comment #1\n\n member comment #3\n" |
| } |
| ] |
| } |
| ] |
| } |
| ], |
| "struct_declarations": [ |
| { |
| "name": "fidl.test.doccomments/Struct", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 72, |
| "column": 8, |
| "length": 6 |
| }, |
| "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": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 76, |
| "column": 11, |
| "length": 5 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " struct member comment #1\n\n struct member comment #3\n" |
| } |
| ], |
| "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.doccomments/Table", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 102, |
| "column": 7, |
| "length": 5 |
| }, |
| "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": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 106, |
| "column": 14, |
| "length": 5 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " table field comment #1\n\n table field comment #3\n" |
| } |
| ] |
| } |
| ], |
| "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.doccomments/StrictUnion", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 82, |
| "column": 14, |
| "length": 11 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " strict union comment #1\n\n strict union comment #3\n" |
| } |
| ], |
| "members": [ |
| { |
| "ordinal": 1, |
| "reserved": false, |
| "name": "Field", |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 86, |
| "column": 14, |
| "length": 5 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " union member comment #1\n\n union member comment #3\n" |
| } |
| ] |
| } |
| ], |
| "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.doccomments/FlexibleUnion", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 92, |
| "column": 16, |
| "length": 13 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " flexible union comment #1\n\n flexible union comment #3\n" |
| } |
| ], |
| "members": [ |
| { |
| "ordinal": 1, |
| "reserved": false, |
| "name": "Field", |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl", |
| "line": 96, |
| "column": 14, |
| "length": 5 |
| }, |
| "maybe_attributes": [ |
| { |
| "name": "Doc", |
| "value": " union member comment #1\n\n union member comment #3\n" |
| } |
| ] |
| } |
| ], |
| "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": [], |
| "declaration_order": [ |
| "fidl.test.doccomments/Table", |
| "fidl.test.doccomments/Struct", |
| "fidl.test.doccomments/StrictUnion", |
| "fidl.test.doccomments/Interface", |
| "fidl.test.doccomments/Service", |
| "fidl.test.doccomments/MyStrictEnum", |
| "fidl.test.doccomments/MyStrictBits", |
| "fidl.test.doccomments/MyFlexibleEnum", |
| "fidl.test.doccomments/MyFlexibleBits", |
| "fidl.test.doccomments/FlexibleUnion", |
| "fidl.test.doccomments/C" |
| ], |
| "declarations": { |
| "fidl.test.doccomments/MyStrictBits": "bits", |
| "fidl.test.doccomments/MyFlexibleBits": "bits", |
| "fidl.test.doccomments/C": "const", |
| "fidl.test.doccomments/MyStrictEnum": "enum", |
| "fidl.test.doccomments/MyFlexibleEnum": "enum", |
| "fidl.test.doccomments/Interface": "interface", |
| "fidl.test.doccomments/Service": "service", |
| "fidl.test.doccomments/SomeLongAnonymousPrefix0": "struct", |
| "fidl.test.doccomments/SomeLongAnonymousPrefix1": "struct", |
| "fidl.test.doccomments/Struct": "struct", |
| "fidl.test.doccomments/Table": "table", |
| "fidl.test.doccomments/StrictUnion": "union", |
| "fidl.test.doccomments/FlexibleUnion": "union" |
| } |
| } |