MCPcopy
hub / github.com/rocky/python-uncompyle6 / remove_rules_38

Method remove_rules_38

uncompyle6/parsers/parse38.py:299–366  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 self.customized = {}
298
299 def remove_rules_38(self):
300 self.remove_rules(
301 """
302 stmt ::= async_for_stmt37
303 stmt ::= for
304 stmt ::= forelsestmt
305 stmt ::= try_except36
306 stmt ::= async_forelse_stmt
307
308 async_for_stmt ::= setup_loop expr
309 GET_AITER
310 SETUP_EXCEPT GET_ANEXT LOAD_CONST
311 YIELD_FROM
312 store
313 POP_BLOCK JUMP_FORWARD COME_FROM_EXCEPT DUP_TOP
314 LOAD_GLOBAL COMPARE_OP POP_JUMP_IF_TRUE
315 END_FINALLY COME_FROM
316 for_block
317 COME_FROM
318 POP_TOP POP_TOP POP_TOP POP_EXCEPT POP_TOP POP_BLOCK
319 COME_FROM_LOOP
320 async_for_stmt37 ::= setup_loop expr
321 GET_AITER
322 SETUP_EXCEPT GET_ANEXT
323 LOAD_CONST YIELD_FROM
324 store
325 POP_BLOCK JUMP_BACK COME_FROM_EXCEPT DUP_TOP
326 LOAD_GLOBAL COMPARE_OP POP_JUMP_IF_TRUE
327 END_FINALLY for_block COME_FROM
328 POP_TOP POP_TOP POP_TOP POP_EXCEPT
329 POP_TOP POP_BLOCK
330 COME_FROM_LOOP
331
332 async_forelse_stmt ::= setup_loop expr
333 GET_AITER
334 SETUP_EXCEPT GET_ANEXT LOAD_CONST
335 YIELD_FROM
336 store
337 POP_BLOCK JUMP_FORWARD COME_FROM_EXCEPT DUP_TOP
338 LOAD_GLOBAL COMPARE_OP POP_JUMP_IF_TRUE
339 END_FINALLY COME_FROM
340 for_block
341 COME_FROM
342 POP_TOP POP_TOP POP_TOP POP_EXCEPT POP_TOP POP_BLOCK
343 else_suite COME_FROM_LOOP
344
345 for ::= setup_loop expr get_for_iter store for_block POP_BLOCK
346 for ::= setup_loop expr get_for_iter store for_block POP_BLOCK NOP
347
348 for_block ::= l_stmts_opt COME_FROM_LOOP JUMP_BACK
349 forelsestmt ::= setup_loop expr get_for_iter store for_block POP_BLOCK else_suite
350 forelselaststmt ::= setup_loop expr get_for_iter store for_block POP_BLOCK else_suitec
351 forelselaststmtl ::= setup_loop expr get_for_iter store for_block POP_BLOCK else_suitel
352
353 tryelsestmtl3 ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK
354 except_handler COME_FROM else_suitel
355 opt_come_from_except
356 try_except ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK

Callers 3

reduce_is_invalidMethod · 0.95
parse38.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected