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

Method begin_statement

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

Marks the beginning 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

(self, stmt)

Source from the content-addressed store, hash-verified

346 return node
347
348 def begin_statement(self, stmt):
349 """Marks the beginning of a statement.
350
351 Args:
352 stmt: Hashable, a key by which the statement can be identified in
353 the CFG's stmt_prev and stmt_next attributes
354 """
355 self.active_stmts.add(stmt)
356
357 def end_statement(self, stmt):
358 """Marks the end of a statement.

Callers 5

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

Calls 1

addMethod · 0.45

Tested by

no test coverage detected