blob: 358c3f66efba73ffbc2204b8dc0de229c66268ac [file] [log] [blame]
Austin Schuh272c6132020-11-14 16:37:52 -08001// Generated from test.proto
2
3include "imported.fbs";
4
5namespace proto.test;
6
7/// Enum doc comment.
8enum ProtoEnum : int {
9 NUL = 0,
10 FOO = 1,
11 /// Enum 2nd value doc comment misaligned.
12 BAR = 5,
13}
14
James Kuszmaul8e62b022022-03-22 09:33:25 -070015namespace proto.test.ProtoMessage_.OtherMessage_;
16
17enum ProtoEnum : int {
18 NUL = 0,
19 FOO = 1,
20 BAR = 2,
21 BAZ = 3,
22}
23
24namespace proto.test;
25
Austin Schuh272c6132020-11-14 16:37:52 -080026/// 2nd table doc comment with
27/// many lines.
28table 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 Kuszmaul8e62b022022-03-22 09:33:25 -070051 outer_enum:proto.test.ProtoEnum;
Austin Schuh272c6132020-11-14 16:37:52 -080052}
53
54namespace proto.test.ProtoMessage_;
55
56table OtherMessage {
57 a:double;
58 /// doc comment for b.
59 b:float = 3.14149;
James Kuszmaul8e62b022022-03-22 09:33:25 -070060 foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum;
Austin Schuh272c6132020-11-14 16:37:52 -080061}
62
63table 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