text: """
  This file was generated by the tool TatSuSAG (the TatSu syntax analyser generator)
  Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
  """
  
  
  from poc.classes.AuxISourceAnalyser import AuxISourceAnalyser
  from poc.classes.AuxInterpretation import AuxInterpretation
  from poc.classes.AuxSTStatement import AuxSTStatement
  from poc.classes.AuxRuleDependencies import AuxRuleDependencies
  from poc.classes.AuxSymbolTable import AuxSymbolTable
  
  
  class ContextReturnStatement(AuxInterpretation):
  
      def __init__(self, i: AuxISourceAnalyser):
          super().__init__(i.ast_info, i.errors)
          self.statement = AuxSTStatement(AuxSymbolTable.statement_return, i)
          self.aggregate_previous_rules(i.parse_list,
                                        AuxRuleDependencies.dep["ReturnStatement"] +
                                        AuxRuleDependencies.dep["ReturnHeader"], self.rule_aggregator)
  
      def rule_aggregator(self, rule: str, parsing_info: AuxInterpretation):
          if rule in AuxRuleDependencies.dep["ReturnHeader"]:
              self.stop_aggregation = True
          elif rule == "Predicate":
              self.statement.register_child(parsing_info.predicate)  # noqa
  
      @staticmethod
      def dispatch(i: AuxISourceAnalyser, parsing_info: AuxInterpretation):
          new_info = ContextReturnStatement(i)
          i.parse_list.append(new_info)
  