def dump_to_p4_P4ParserFunction(self, hlir): call_sequence = [] for call in self.extract_and_set_statements: call_sequence.append(call.dump_to_p4(hlir)) g_parse_state = p4_parse_state( hlir, self.name, call_sequence=call_sequence, return_statement=self.return_statement.dump_to_p4(hlir), filename=self.filename, lineno=self.lineno) g_parse_state._pragmas = self._pragmas.copy()
def dump_to_p4_P4ParserFunction(self, hlir): call_sequence = [] for call in self.extract_and_set_statements: call_sequence.append(call.dump_to_p4(hlir)) g_parse_state = p4_parse_state( hlir, self.name, call_sequence=call_sequence, return_statement=self.return_statement.dump_to_p4(hlir), filename=self.filename, lineno=self.lineno, ) g_parse_state._pragmas = self._pragmas.copy()