Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 1 | // Generated from test.proto |
| 2 | |
| 3 | include "imported.fbs"; |
| 4 | |
| 5 | namespace proto.test; |
| 6 | |
| 7 | /// Enum doc comment. |
| 8 | enum ProtoEnum : int { |
| 9 | NUL = 0, |
| 10 | FOO = 1, |
| 11 | /// Enum 2nd value doc comment misaligned. |
| 12 | BAR = 5, |
| 13 | } |
| 14 | |
James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame^] | 15 | namespace proto.test.ProtoMessage_.OtherMessage_; |
| 16 | |
| 17 | enum ProtoEnum : int { |
| 18 | NUL = 0, |
| 19 | FOO = 1, |
| 20 | BAR = 2, |
| 21 | BAZ = 3, |
| 22 | } |
| 23 | |
| 24 | namespace proto.test; |
| 25 | |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 26 | /// 2nd table doc comment with |
| 27 | /// many lines. |
| 28 | table ProtoMessage { |
| 29 | c:int = 16; |
| 30 | d:long; |
| 31 | p:uint; |
| 32 | e:ulong; |
| 33 | /// doc comment for f. |
| 34 | f:int = -1; |
| 35 | g:long; |
| 36 | h:uint; |
| 37 | q:ulong; |
| 38 | i:int; |
| 39 | j:long; |
| 40 | /// doc comment for k. |
| 41 | k:bool; |
| 42 | /// doc comment for l on 2 |
| 43 | /// lines |
| 44 | l:string (required); |
| 45 | m:[ubyte]; |
| 46 | n:proto.test.ProtoMessage_.OtherMessage; |
| 47 | o:[string]; |
| 48 | z:proto.test.ImportedMessage; |
| 49 | /// doc comment for r. |
| 50 | r:proto.test.ProtoMessage_.Anonymous0; |
James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame^] | 51 | outer_enum:proto.test.ProtoEnum; |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | namespace proto.test.ProtoMessage_; |
| 55 | |
| 56 | table OtherMessage { |
| 57 | a:double; |
| 58 | /// doc comment for b. |
| 59 | b:float = 3.14149; |
James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame^] | 60 | foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum; |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | table Anonymous0 { |
| 64 | /// doc comment for s. |
| 65 | s:proto.test.ImportedMessage; |
| 66 | /// doc comment for t on 2 |
| 67 | /// lines. |
| 68 | t:proto.test.ProtoMessage_.OtherMessage; |
| 69 | } |
| 70 | |