Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
wanted_roles
codeintel.retrieval.wanted_roles
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
codeintel.retrieval.wanted_rolesbackend/app/codeintel/retrieval.py, lines 160–162Open source
def wanted_roles(query: str) -> set[str]: """Non-source roles the query asks for ("the test for …", "an example of …").""" return {role for role, pattern in _ROLE_INTENT_RE.items() if pattern.search(query)}What the index recorded
- Signature
def wanted_roles(query: str) -> set[str]:- File
backend/app/codeintel/retrieval.py- Lines
- 160–162
- Parser
- python-ast
- Git blob
884729a39ae0b3d340ad83f75946677dcddf3791- Call sites
- 2 named, 1 resolved, 1 left unlinked
- Outside this subset
- 1 more edges reach code outside the graph shown here
