MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / Generate

Method Generate

tests/external/gmock-1.7.0/scripts/generator/cpp/ast.py:703–724  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers 4

_GetClassMethod · 0.95
mainFunction · 0.45
PrintIndentifiersFunction · 0.45
mainFunction · 0.45

Calls 4

_GetNextTokenMethod · 0.95
_GenerateOneMethod · 0.95
HandleErrorMethod · 0.95
popMethod · 0.80

Tested by

no test coverage detected