Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_go_receiver_type
codeintel.parsers.treesitter_parser._go_receiver_type
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 |
|---|---|---|
| _text | treesitter_parser.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| parse_treesitter | treesitter_parser.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| treesitter_parser | treesitter_parser.py | same file |
codeintel.parsers.treesitter_parser._go_receiver_typebackend/app/codeintel/parsers/treesitter_parser.py, lines 392–400Open source
def _go_receiver_type(node, src: bytes) -> str | None: receiver = node.child_by_field_name("receiver") if receiver is None: return None for param in receiver.named_children: type_node = param.child_by_field_name("type") if type_node is not None: return _text(type_node, src).lstrip("*").split("[", 1)[0] return NoneWhat the index recorded
- Signature
def _go_receiver_type(node, src: bytes) -> str | None:- File
backend/app/codeintel/parsers/treesitter_parser.py- Lines
- 392–400
- Parser
- python-ast
- Git blob
bf0c9a8044cadd3452ebf5ffa82b866ae00395a9- Call sites
- 4 named, 1 resolved, 3 left unlinked
