MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / end_statement

Method end_statement

tensorflow/python/autograph/pyct/cfg.py:357–365  ·  view source on GitHub ↗

Marks the end of a statement. Args: stmt: Hashable, a key by which the statement can be identified in the CFG's stmt_prev and stmt_next attributes; must match a key previously passed to begin_statement.

(self, stmt)

Source from the content-addressed store, hash-verified

355 self.active_stmts.add(stmt)
356
357 def end_statement(self, stmt):
358 """Marks the end of a statement.
359
360 Args:
361 stmt: Hashable, a key by which the statement can be identified in
362 the CFG's stmt_prev and stmt_next attributes; must match a key
363 previously passed to begin_statement.
364 """
365 self.active_stmts.remove(stmt)
366
367 def add_ordinary_node(self, ast_node):
368 """Grows the graph by adding an ordinary CFG node.

Callers 5

visit_IfMethod · 0.80
visit_WhileMethod · 0.80
visit_ForMethod · 0.80
visit_ExceptHandlerMethod · 0.80
visit_TryMethod · 0.80

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected