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

Method visit

tensorflow/python/autograph/pyct/origin_info.py:210–221  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

208 anno.setanno(node, anno.Basic.ORIGIN, origin)
209
210 def visit(self, node):
211 entered_function = False
212 if isinstance(node, gast.FunctionDef):
213 entered_function = True
214 self._function_stack.append(_Function(node.name))
215
216 if hasattr(node, 'lineno'):
217 self._attach_origin_info(node)
218 self.generic_visit(node)
219
220 if entered_function:
221 self._function_stack.pop()
222
223
224def resolve(node, source, context_filepath, context_lineno, context_col_offset):

Callers 1

resolveFunction · 0.95

Calls 5

_attach_origin_infoMethod · 0.95
_FunctionClass · 0.70
appendMethod · 0.45
generic_visitMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected