mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 15:01:12 +00:00
Added support for imports and many other .proto features.
Change-Id: I6600021b7ec8c486794349511232c3e604421c5b Tested: on Linux.
This commit is contained in:
@@ -1,14 +1,22 @@
|
||||
// Generated from test.proto
|
||||
|
||||
namespace proto.test;
|
||||
namespace _proto._test;
|
||||
|
||||
/// Enum doc comment.
|
||||
enum ProtoEnum : short {
|
||||
enum ProtoEnum : int {
|
||||
FOO = 1,
|
||||
/// Enum 2nd value doc comment misaligned.
|
||||
BAR = 5,
|
||||
}
|
||||
|
||||
namespace _proto._test;
|
||||
|
||||
table ImportedMessage {
|
||||
a:int;
|
||||
}
|
||||
|
||||
namespace _proto._test;
|
||||
|
||||
/// 2nd table doc comment with
|
||||
/// many lines.
|
||||
table ProtoMessage {
|
||||
@@ -29,10 +37,13 @@ table ProtoMessage {
|
||||
/// lines
|
||||
l:string (required);
|
||||
m:string;
|
||||
n:OtherMessage;
|
||||
n:_proto._test._ProtoMessage.OtherMessage;
|
||||
o:[string];
|
||||
z:_proto._test.ImportedMessage;
|
||||
}
|
||||
|
||||
namespace _proto._test._ProtoMessage;
|
||||
|
||||
table OtherMessage {
|
||||
a:double;
|
||||
/// doc comment for b.
|
||||
|
||||
Reference in New Issue
Block a user