Fixed schemas inheriting namespace from included schemas.

Change-Id: Ib561430b235eddf4bfe20f68409e1dfdb359ef2b
Tested: on Linux.
parent 221193ea
......@@ -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_) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment