mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Fixed schemas inheriting namespace from included schemas.
Change-Id: Ib561430b235eddf4bfe20f68409e1dfdb359ef2b Tested: on Linux.
This commit is contained in:
parent
221193eaa2
commit
8896587faf
1 changed files with 2 additions and 0 deletions
|
|
@ -1185,6 +1185,8 @@ bool Parser::Parse(const char *source, const char **include_paths,
|
|||
}
|
||||
Expect(';');
|
||||
}
|
||||
// Start with a blank namespace just in case this file doesn't have one.
|
||||
namespaces_.push_back(new Namespace());
|
||||
// Now parse all other kinds of declarations:
|
||||
while (token_ != kTokenEof) {
|
||||
if (proto_mode_) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue