pyrser/parsing/base.py
def push_rule_nodes(self) -> bool:
        """Push context variable to store rule nodes."""
        if self.rule_nodes is None:
            self.rule_nodes = collections.ChainMap()
            self.tag_cache = collections.ChainMap()
            self.id_cache = collections.ChainMap()
        else:
            self.rule_nodes = self.rule_nodes.new_child()
            self.tag_cache = self.tag_cache.new_child()
            self.id_cache = self.id_cache.new_child()
        return True
def push_rule_nodes(self) -> bool:
        if self.rule_nodes is None:
            self.rule_nodes = collections.ChainMap()
            self.tag_cache = collections.ChainMap()
            self.id_cache = collections.ChainMap()
        else:
            self.rule_nodes = self.rule_nodes.new_child()
            self.tag_cache = self.tag_cache.new_child()
            self.id_cache = self.id_cache.new_child()
        return True
def push_rule_nodes ( self ) -> bool : if self . rule_nodes is None : self . rule_nodes = collections . ChainMap ( ) self . tag_cache = collections . ChainMap ( ) self . id_cache = collections . ChainMap ( ) else : self . rule_nodes = self . rule_nodes . new_child ( ) self . tag_cache = self . tag_cache . new_child ( ) self . id_cache = self . id_cache . new_child ( ) return True
Push context variable to store rule nodes.
Push context variable to store rule nodes .