Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _push_ast(self):
self._tree_stack.append(TreeInfo())
def _initialize_caches(self):
self._tree_stack = [TreeInfo()]
self._rule_stack = []
self._cut_stack = [False]
self._last_node = None
self._state = None
self._lookahead = 0
self._clear_memoization_caches()
def _push_cst(self):
self._tree_stack.append(TreeInfo(ast=self.ast))