Back to the room

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

Code Observatory / method

get

codeintel.source._FileCache.get

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

Called by (1)
SymbolFileResolved by
_loadsource.pysame file
Inside (1)
SymbolFileResolved by
_FileCachesource.pysame file
codeintel.source._FileCache.getbackend/app/codeintel/source.py, lines 67–72Open source
    def get(self, key: str) -> bytes | None:        with self._lock:            if key in self._data:                self._data.move_to_end(key)                return self._data[key]            return None

What the index recorded

Signature
def get(self, key: str) -> bytes | None:
File
backend/app/codeintel/source.py
Lines
67–72
Parser
python-ast
Git blob
c9f05cf7bf871b09919d64e9fdaf8380ecc3df2c
Call sites
1 named, 0 resolved, 1 left unlinked

Read it on GitHub at this commit