blob: 7db187cb766c2e0d03d92e19e39cb2371ccf990b [file] [log] [blame]
{
"name": "test.doccomments",
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " library comment #1\n\n library comment #2\n",
"expression": "/// library comment #1\n///\n/// library comment #2",
"literal": {
"kind": "string",
"value": " library comment #1\n\n library comment #2\n",
"expression": "/// library comment #1\n///\n/// library comment #2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 1,
"column": 1,
"length": 49
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 1,
"column": 1,
"length": 49
}
}
],
"library_dependencies": [],
"bits_declarations": [
{
"name": "test.doccomments/MyFlexibleBits",
"naming_context": [
"MyFlexibleBits"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 23,
"column": 6,
"length": 14
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " flexible bits comment #1\n\n flexible bits comment #2\n",
"expression": "/// flexible bits comment #1\n///\n/// flexible bits comment #2",
"literal": {
"kind": "string",
"value": " flexible bits comment #1\n\n flexible bits comment #2\n",
"expression": "/// flexible bits comment #1\n///\n/// flexible bits comment #2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 20,
"column": 1,
"length": 61
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 20,
"column": 1,
"length": 61
}
}
],
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " MY_FIRST_BIT member comment #1\n\n MY_FIRST_BIT member comment #3\n",
"expression": "/// MY_FIRST_BIT member comment #1\n ///\n /// MY_FIRST_BIT member comment #3",
"literal": {
"kind": "string",
"value": " MY_FIRST_BIT member comment #1\n\n MY_FIRST_BIT member comment #3\n",
"expression": "/// MY_FIRST_BIT member comment #1\n ///\n /// MY_FIRST_BIT member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 24,
"column": 5,
"length": 81
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 24,
"column": 5,
"length": 81
}
}
]
},
{
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " MY_OTHER_BIT member comment #1\n\n MY_OTHER_BIT member comment #3\n",
"expression": "/// MY_OTHER_BIT member comment #1\n ///\n /// MY_OTHER_BIT member comment #3",
"literal": {
"kind": "string",
"value": " MY_OTHER_BIT member comment #1\n\n MY_OTHER_BIT member comment #3\n",
"expression": "/// MY_OTHER_BIT member comment #1\n ///\n /// MY_OTHER_BIT member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 28,
"column": 5,
"length": 81
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 28,
"column": 5,
"length": 81
}
}
]
}
],
"strict": false
},
{
"name": "test.doccomments/MyStrictBits",
"naming_context": [
"MyStrictBits"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 9,
"column": 6,
"length": 12
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " strict bits comment #1\n\n strict bits comment #2\n",
"expression": "/// strict bits comment #1\n///\n/// strict bits comment #2",
"literal": {
"kind": "string",
"value": " strict bits comment #1\n\n strict bits comment #2\n",
"expression": "/// strict bits comment #1\n///\n/// strict bits comment #2"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 6,
"column": 1,
"length": 57
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 6,
"column": 1,
"length": 57
}
}
],
"type": {
"kind": "primitive",
"subtype": "uint32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " MY_FIRST_BIT member comment #1\n\n MY_FIRST_BIT member comment #3\n",
"expression": "/// MY_FIRST_BIT member comment #1\n ///\n /// MY_FIRST_BIT member comment #3",
"literal": {
"kind": "string",
"value": " MY_FIRST_BIT member comment #1\n\n MY_FIRST_BIT member comment #3\n",
"expression": "/// MY_FIRST_BIT member comment #1\n ///\n /// MY_FIRST_BIT member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 10,
"column": 5,
"length": 81
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 10,
"column": 5,
"length": 81
}
}
]
},
{
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " MY_OTHER_BIT member comment #1\n\n MY_OTHER_BIT member comment #3\n",
"expression": "/// MY_OTHER_BIT member comment #1\n ///\n /// MY_OTHER_BIT member comment #3",
"literal": {
"kind": "string",
"value": " MY_OTHER_BIT member comment #1\n\n MY_OTHER_BIT member comment #3\n",
"expression": "/// MY_OTHER_BIT member comment #1\n ///\n /// MY_OTHER_BIT member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 14,
"column": 5,
"length": 81
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 14,
"column": 5,
"length": 81
}
}
]
}
],
"strict": true
}
],
"const_declarations": [
{
"name": "test.doccomments/C",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 37,
"column": 7,
"length": 1
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " const comment #1\n\n const comment #3\n",
"expression": "/// const comment #1\n///\n/// const comment #3",
"literal": {
"kind": "string",
"value": " const comment #1\n\n const comment #3\n",
"expression": "/// const comment #1\n///\n/// const comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 34,
"column": 1,
"length": 45
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 34,
"column": 1,
"length": 45
}
}
],
"type": {
"kind": "primitive",
"subtype": "int32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"value": {
"kind": "literal",
"value": "4",
"expression": "4",
"literal": {
"kind": "numeric",
"value": "4",
"expression": "4"
}
}
}
],
"enum_declarations": [
{
"name": "test.doccomments/MyFlexibleEnum",
"naming_context": [
"MyFlexibleEnum"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 57,
"column": 6,
"length": 14
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " flexible enum comment #1.\n\n flexible enum comment #2.\n",
"expression": "/// flexible enum comment #1.\n///\n/// flexible enum comment #2.",
"literal": {
"kind": "string",
"value": " flexible enum comment #1.\n\n flexible enum comment #2.\n",
"expression": "/// flexible enum comment #1.\n///\n/// flexible enum comment #2."
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 54,
"column": 1,
"length": 63
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 54,
"column": 1,
"length": 63
}
}
],
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " FOO member comment #1\n\n FOO member comment #3\n",
"expression": "/// FOO member comment #1\n ///\n /// FOO member comment #3",
"literal": {
"kind": "string",
"value": " FOO member comment #1\n\n FOO member comment #3\n",
"expression": "/// FOO member comment #1\n ///\n /// FOO member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 58,
"column": 5,
"length": 63
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 58,
"column": 5,
"length": 63
}
}
]
},
{
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " BAR member comment #1\n\n BAR member comment #3\n",
"expression": "/// BAR member comment #1\n ///\n /// BAR member comment #3",
"literal": {
"kind": "string",
"value": " BAR member comment #1\n\n BAR member comment #3\n",
"expression": "/// BAR member comment #1\n ///\n /// BAR member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 62,
"column": 5,
"length": 63
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 62,
"column": 5,
"length": 63
}
}
]
}
],
"strict": false,
"maybe_unknown_value": 4294967295
},
{
"name": "test.doccomments/MyStrictEnum",
"naming_context": [
"MyStrictEnum"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 42,
"column": 6,
"length": 12
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " strict enum comment #1.\n\n strict enum comment #2.\n",
"expression": "/// strict enum comment #1.\n///\n/// strict enum comment #2.",
"literal": {
"kind": "string",
"value": " strict enum comment #1.\n\n strict enum comment #2.\n",
"expression": "/// strict enum comment #1.\n///\n/// strict enum comment #2."
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 39,
"column": 1,
"length": 59
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 39,
"column": 1,
"length": 59
}
}
],
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " FOO member comment #1\n\n FOO member comment #3\n",
"expression": "/// FOO member comment #1\n ///\n /// FOO member comment #3",
"literal": {
"kind": "string",
"value": " FOO member comment #1\n\n FOO member comment #3\n",
"expression": "/// FOO member comment #1\n ///\n /// FOO member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 43,
"column": 5,
"length": 63
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 43,
"column": 5,
"length": 63
}
}
]
},
{
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " BAR member comment #1\n\n BAR member comment #3\n",
"expression": "/// BAR member comment #1\n ///\n /// BAR member comment #3",
"literal": {
"kind": "string",
"value": " BAR member comment #1\n\n BAR member comment #3\n",
"expression": "/// BAR member comment #1\n ///\n /// BAR member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 47,
"column": 5,
"length": 63
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 47,
"column": 5,
"length": 63
}
}
]
}
],
"strict": true
}
],
"experimental_resource_declarations": [],
"protocol_declarations": [
{
"name": "test.doccomments/Interface",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 112,
"column": 10,
"length": 9
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " interface comment #1\n\n interface comment #3\n",
"expression": "/// interface comment #1\n///\n/// interface comment #3",
"literal": {
"kind": "string",
"value": " interface comment #1\n\n interface comment #3\n",
"expression": "/// interface comment #1\n///\n/// interface comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 109,
"column": 1,
"length": 53
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 109,
"column": 1,
"length": 53
}
}
],
"composed_protocols": [],
"methods": [
{
"ordinal": 5017051197196532121,
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " method comment #1\n\n method comment #3\n",
"expression": "/// method comment #1\n ///\n /// method comment #3",
"literal": {
"kind": "string",
"value": " method comment #1\n\n method comment #3\n",
"expression": "/// method comment #1\n ///\n /// method comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 113,
"column": 5,
"length": 55
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 113,
"column": 5,
"length": 55
}
}
],
"has_response": false,
"is_composed": false,
"has_error": false
},
{
"ordinal": 28780186509098736,
"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",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " event comment #1\n\n event comment #3\n",
"expression": "/// event comment #1\n ///\n /// event comment #3",
"literal": {
"kind": "string",
"value": " event comment #1\n\n event comment #3\n",
"expression": "/// event comment #1\n ///\n /// event comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 118,
"column": 5,
"length": 53
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 118,
"column": 5,
"length": 53
}
}
],
"has_response": true,
"is_composed": false,
"has_error": false
}
]
}
],
"service_declarations": [
{
"name": "test.doccomments/Service",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 127,
"column": 9,
"length": 7
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " service comment #1\n\n service comment #3\n",
"expression": "/// service comment #1\n///\n/// service comment #3",
"literal": {
"kind": "string",
"value": " service comment #1\n\n service comment #3\n",
"expression": "/// service comment #1\n///\n/// service comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 124,
"column": 1,
"length": 49
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 124,
"column": 1,
"length": 49
}
}
],
"members": [
{
"type": {
"kind": "identifier",
"identifier": "test.doccomments/Interface",
"nullable": false,
"protocol_transport": "Channel",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 1,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "interface",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 131,
"column": 5,
"length": 9
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " member comment #1\n\n member comment #3\n",
"expression": "/// member comment #1\n ///\n /// member comment #3",
"literal": {
"kind": "string",
"value": " member comment #1\n\n member comment #3\n",
"expression": "/// member comment #1\n ///\n /// member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 128,
"column": 5,
"length": 55
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 128,
"column": 5,
"length": 55
}
}
]
}
]
}
],
"struct_declarations": [
{
"name": "test.doccomments/Struct",
"naming_context": [
"Struct"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 72,
"column": 6,
"length": 6
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " struct comment #1\n\n struct comment #3\n",
"expression": "/// struct comment #1\n///\n/// struct comment #3",
"literal": {
"kind": "string",
"value": " struct comment #1\n\n struct comment #3\n",
"expression": "/// struct comment #1\n///\n/// struct comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 69,
"column": 1,
"length": 47
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 69,
"column": 1,
"length": 47
}
}
],
"members": [
{
"type": {
"kind": "primitive",
"subtype": "int32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "Field",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 76,
"column": 5,
"length": 5
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " struct member comment #1\n\n struct member comment #3\n",
"expression": "/// struct member comment #1\n ///\n /// struct member comment #3",
"literal": {
"kind": "string",
"value": " struct member comment #1\n\n struct member comment #3\n",
"expression": "/// struct member comment #1\n ///\n /// struct member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 73,
"column": 5,
"length": 69
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 73,
"column": 5,
"length": 69
}
}
],
"field_shape_v1": {
"offset": 0,
"padding": 0
},
"field_shape_v2": {
"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_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
}
],
"external_struct_declarations": [],
"table_declarations": [
{
"name": "test.doccomments/Table",
"naming_context": [
"Table"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 102,
"column": 6,
"length": 5
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " table comment #1\n\n table comment #3\n",
"expression": "/// table comment #1\n///\n/// table comment #3",
"literal": {
"kind": "string",
"value": " table comment #1\n\n table comment #3\n",
"expression": "/// table comment #1\n///\n/// table comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 99,
"column": 1,
"length": 45
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 99,
"column": 1,
"length": 45
}
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"type": {
"kind": "primitive",
"subtype": "int32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"name": "Field",
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 106,
"column": 8,
"length": 5
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " table field comment #1\n\n table field comment #3\n",
"expression": "/// table field comment #1\n ///\n /// table field comment #3",
"literal": {
"kind": "string",
"value": " table field comment #1\n\n table field comment #3\n",
"expression": "/// table field comment #1\n ///\n /// table field comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 103,
"column": 5,
"length": 65
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 103,
"column": 5,
"length": 65
}
}
]
}
],
"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_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 2,
"max_handles": 0,
"max_out_of_line": 8,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
}
],
"union_declarations": [
{
"name": "test.doccomments/FlexibleUnion",
"naming_context": [
"FlexibleUnion"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 92,
"column": 6,
"length": 13
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " flexible union comment #1\n\n flexible union comment #3\n",
"expression": "/// flexible union comment #1\n///\n/// flexible union comment #3",
"literal": {
"kind": "string",
"value": " flexible union comment #1\n\n flexible union comment #3\n",
"expression": "/// flexible union comment #1\n///\n/// flexible union comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 89,
"column": 1,
"length": 63
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 89,
"column": 1,
"length": 63
}
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "Field",
"type": {
"kind": "primitive",
"subtype": "int32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 96,
"column": 8,
"length": 5
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " union member comment #1\n\n union member comment #3\n",
"expression": "/// union member comment #1\n ///\n /// union member comment #3",
"literal": {
"kind": "string",
"value": " union member comment #1\n\n union member comment #3\n",
"expression": "/// union member comment #1\n ///\n /// union member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 93,
"column": 5,
"length": 67
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 93,
"column": 5,
"length": 67
}
}
]
}
],
"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_envelope": true,
"has_flexible_envelope": true
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": true
}
},
{
"name": "test.doccomments/StrictUnion",
"naming_context": [
"StrictUnion"
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 82,
"column": 6,
"length": 11
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " strict union comment #1\n\n strict union comment #3\n",
"expression": "/// strict union comment #1\n///\n/// strict union comment #3",
"literal": {
"kind": "string",
"value": " strict union comment #1\n\n strict union comment #3\n",
"expression": "/// strict union comment #1\n///\n/// strict union comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 79,
"column": 1,
"length": 59
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 79,
"column": 1,
"length": 59
}
}
],
"members": [
{
"ordinal": 1,
"reserved": false,
"name": "Field",
"type": {
"kind": "primitive",
"subtype": "int32",
"type_shape_v1": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 4,
"alignment": 4,
"depth": 0,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": false,
"has_envelope": false,
"has_flexible_envelope": false
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 86,
"column": 8,
"length": 5
},
"maybe_attributes": [
{
"name": "doc",
"arguments": [
{
"name": "value",
"type": "string",
"value": {
"kind": "literal",
"value": " union member comment #1\n\n union member comment #3\n",
"expression": "/// union member comment #1\n ///\n /// union member comment #3",
"literal": {
"kind": "string",
"value": " union member comment #1\n\n union member comment #3\n",
"expression": "/// union member comment #1\n ///\n /// union member comment #3"
}
},
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 83,
"column": 5,
"length": 67
}
}
],
"location": {
"filename": "../../tools/fidl/fidlc/testdata/doc_comments.test.fidl",
"line": 83,
"column": 5,
"length": 67
}
}
]
}
],
"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_envelope": true,
"has_flexible_envelope": false
},
"type_shape_v2": {
"inline_size": 16,
"alignment": 8,
"depth": 1,
"max_handles": 0,
"max_out_of_line": 0,
"has_padding": true,
"has_envelope": true,
"has_flexible_envelope": false
}
}
],
"type_alias_declarations": [],
"declaration_order": [
"test.doccomments/Table",
"test.doccomments/Struct",
"test.doccomments/StrictUnion",
"test.doccomments/Service",
"test.doccomments/MyStrictEnum",
"test.doccomments/MyStrictBits",
"test.doccomments/MyFlexibleEnum",
"test.doccomments/MyFlexibleBits",
"test.doccomments/Interface",
"test.doccomments/FlexibleUnion",
"test.doccomments/C"
],
"declarations": {
"test.doccomments/MyFlexibleBits": "bits",
"test.doccomments/MyStrictBits": "bits",
"test.doccomments/C": "const",
"test.doccomments/MyFlexibleEnum": "enum",
"test.doccomments/MyStrictEnum": "enum",
"test.doccomments/Interface": "protocol",
"test.doccomments/Service": "service",
"test.doccomments/Struct": "struct",
"test.doccomments/Table": "table",
"test.doccomments/FlexibleUnion": "union",
"test.doccomments/StrictUnion": "union"
}
}