Back to the room

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

Code Observatory / function

resolve_sources

codeintel.source.resolve_sources

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 (1)
SymbolFileResolved by
_resolve_onesource.pysame file
Called by (3)
SymbolFileResolved by
assemble_contextcontext.pythrough an import
hoversymbols.pythrough an import
lookup_symbolrouter.pythrough an import
Inside (1)
SymbolFileResolved by
sourcesource.pysame file
codeintel.source.resolve_sourcesbackend/app/codeintel/source.py, lines 165–173Open source
def resolve_sources(requests: list[SourceRequest], token: str | None = None) -> dict[str, SourceResult]:    """Resolve many pointers concurrently; never raises."""    if not requests:        return {}    if len(requests) == 1:        return {requests[0].key: _resolve_one(requests[0], token)}    with concurrent.futures.ThreadPoolExecutor(max_workers=min(FETCH_CONCURRENCY, len(requests))) as pool:        results = list(pool.map(lambda r: _resolve_one(r, token), requests))    return {r.key: r for r in results}

What the index recorded

Signature
def resolve_sources(requests: list[SourceRequest], token: str | None) -> dict[str, SourceResult]:
File
backend/app/codeintel/source.py
Lines
165–173
Parser
python-ast
Git blob
c9f05cf7bf871b09919d64e9fdaf8380ecc3df2c
Call sites
6 named, 1 resolved, 5 left unlinked

Read it on GitHub at this commit