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 | |
| 15 | /// 2nd table doc comment with |
| 16 | /// many lines. |
| 17 | table ProtoMessage { |
| 18 | c:int = 16; |
| 19 | d:long; |
| 20 | p:uint; |
| 21 | e:ulong; |
| 22 | /// doc comment for f. |
| 23 | f:int = -1; |
| 24 | g:long; |
| 25 | h:uint; |
| 26 | q:ulong; |
| 27 | i:int; |
| 28 | j:long; |
| 29 | /// doc comment for k. |
| 30 | k:bool; |
| 31 | /// doc comment for l on 2 |
| 32 | /// lines |
| 33 | l:string (required); |
| 34 | m:[ubyte]; |
| 35 | n:proto.test.ProtoMessage_.OtherMessage; |
| 36 | o:[string]; |
| 37 | z:proto.test.ImportedMessage; |
| 38 | /// doc comment for r. |
| 39 | r:proto.test.ProtoMessage_.Anonymous0; |
| 40 | } |
| 41 | |
| 42 | namespace proto.test.ProtoMessage_; |
| 43 | |
| 44 | table OtherMessage { |
| 45 | a:double; |
| 46 | /// doc comment for b. |
| 47 | b:float = 3.14149; |
| 48 | } |
| 49 | |
| 50 | table Anonymous0 { |
| 51 | /// doc comment for s. |
| 52 | s:proto.test.ImportedMessage; |
| 53 | /// doc comment for t on 2 |
| 54 | /// lines. |
| 55 | t:proto.test.ProtoMessage_.OtherMessage; |
| 56 | } |
| 57 | |