Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / method

_visit_func

codeintel.parsers.python_parser._Extractor._visit_func

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Calls (2)
SymbolFileResolved by
add_identifierbase.pyunique name
_enterpython_parser.pysame file
Inside (1)
SymbolFileResolved by
_Extractorpython_parser.pysame file
codeintel.parsers.python_parser._Extractor._visit_funcbackend/app/codeintel/parsers/python_parser.py, lines 143–149Open source
    def _visit_func(self, node: ast.FunctionDef | ast.AsyncFunctionDef) -> None:        if self.current.kind in ("function", "method"):            # Closures belong to the enclosing function's chunk.            self.current.add_identifier(node.name)            self.generic_visit(node)            return        self._enter(node, "method" if self.current.kind == "class" else "function")

What the index recorded

Signature
def _visit_func(self, node: ast.FunctionDef | ast.AsyncFunctionDef) -> None:
File
backend/app/codeintel/parsers/python_parser.py
Lines
143–149
Parser
python-ast
Git blob
63495bcda67d5742151d40ab76540e513f44e088
Call sites
3 named, 2 resolved, 1 left unlinked

Read it on GitHub at this commit