Made .proto parsing understand nested declarations.

Bug: 24401812
Change-Id: I196a03b8c5ef0bcd3c26178239c764e40ca1950d
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2015-09-28 09:42:45 -07:00
parent a35c32e30f
commit 2abe24b9dd
5 changed files with 57 additions and 52 deletions

View File

@@ -9,12 +9,6 @@ enum ProtoEnum : short {
BAR = 5,
}
table OtherMessage {
a:double;
/// doc comment for b.
b:float = 3.14149;
}
/// 2nd table doc comment with
/// many lines.
table ProtoMessage {
@@ -39,3 +33,9 @@ table ProtoMessage {
o:[string];
}
table OtherMessage {
a:double;
/// doc comment for b.
b:float = 3.14149;
}