(self)
| 701 | (msg, self.filename, token, printable_queue)) |
| 702 | |
| 703 | def Generate(self): |
| 704 | while 1: |
| 705 | token = self._GetNextToken() |
| 706 | if not token: |
| 707 | break |
| 708 | |
| 709 | # Get the next token. |
| 710 | self.current_token = token |
| 711 | |
| 712 | # Dispatch on the next token type. |
| 713 | if token.token_type == _INTERNAL_TOKEN: |
| 714 | if token.name == _NAMESPACE_POP: |
| 715 | self.namespace_stack.pop() |
| 716 | continue |
| 717 | |
| 718 | try: |
| 719 | result = self._GenerateOne(token) |
| 720 | if result is not None: |
| 721 | yield result |
| 722 | except: |
| 723 | self.HandleError('exception', token) |
| 724 | raise |
| 725 | |
| 726 | def _CreateVariable(self, pos_token, name, type_name, type_modifiers, |
| 727 | ref_pointer_name_seq, templated_types, value=None): |
no test coverage detected