| 590 | } |
| 591 | |
| 592 | CheckedError Parser::ParseNamespacing(std::string *id, std::string *last) { |
| 593 | while (Is('.')) { |
| 594 | NEXT(); |
| 595 | *id += "."; |
| 596 | *id += attribute_; |
| 597 | if (last) *last = attribute_; |
| 598 | EXPECT(kTokenIdentifier); |
| 599 | } |
| 600 | return NoError(); |
| 601 | } |
| 602 | |
| 603 | EnumDef *Parser::LookupEnum(const std::string &id) { |
| 604 | // Search thru parent namespaces. |