Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_callee
codeintel.parsers.treesitter_parser._callee
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 symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| _last_segment | treesitter_parser.py | same file |
| _text | treesitter_parser.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| treesitter_parser | treesitter_parser.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| treesitter_parser | treesitter_parser.py | same file |
codeintel.parsers.treesitter_parser._calleebackend/app/codeintel/parsers/treesitter_parser.py, lines 107–120Open source
def _callee(field_name: str): """Callee of a call node: identifier, or the last segment of a member access.""" def get(node, src): fn = node.child_by_field_name(field_name) if fn is None: return None for attr in ("property", "field", "name"): inner = fn.child_by_field_name(attr) if inner is not None: return _text(inner, src) return _last_segment(_text(fn, src)) return getWhat the index recorded
- Signature
def _callee(field_name: str):- File
backend/app/codeintel/parsers/treesitter_parser.py- Lines
- 107–120
- Parser
- python-ast
- Git blob
bf0c9a8044cadd3452ebf5ffa82b866ae00395a9- Call sites
- 3 named, 2 resolved, 1 left unlinked
