MCPcopy Create free account
hub / github.com/getsentry/sentry / visit_AsyncFunctionDef

Method visit_AsyncFunctionDef

tools/flake8_plugin.py:864–877  ·  view source on GitHub ↗
(self, node: ast.AsyncFunctionDef)

Source from the content-addressed store, hash-verified

862 self._exit_input()
863
864 def visit_AsyncFunctionDef(self, node: ast.AsyncFunctionDef) -> None:
865 if len(self._class_stack) == 1 and self._function_depth == 0:
866 self._check_S021(node)
867 self._check_S022(node)
868 entered = self._enter_input(node)
869 self._function_depth += 1
870 self._function_stack.append(node.name)
871 try:
872 self.generic_visit(node)
873 finally:
874 self._function_stack.pop()
875 self._function_depth -= 1
876 if entered:
877 self._exit_input()
878
879 def visit_Lambda(self, node: ast.Lambda) -> None:
880 self._function_depth += 1

Callers

nothing calls this directly

Calls 7

_check_S021Method · 0.95
_check_S022Method · 0.95
_enter_inputMethod · 0.95
_exit_inputMethod · 0.95
appendMethod · 0.65
generic_visitMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected