Back to the room

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

Code Observatory / method

add_identifier

codeintel.parsers.base.Symbol.add_identifier

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 (8)
SymbolFileResolved by
line_chunks__init__.pyunique name
_enterpython_parser.pyunique name
_visit_funcpython_parser.pyunique name
visit_Attributepython_parser.pyunique name
visit_Importpython_parser.pyunique name
visit_ImportFrompython_parser.pyunique name
visit_Namepython_parser.pyunique name
parse_treesittertreesitter_parser.pyunique name
Inside (1)
SymbolFileResolved by
Symbolbase.pysame file
codeintel.parsers.base.Symbol.add_identifierbackend/app/codeintel/parsers/base.py, lines 39–46Open source
    def add_identifier(self, name: str) -> None:        if (            name            and len(name) > 1            and name not in self.identifiers            and len(self.identifiers) < MAX_IDENTIFIERS        ):            self.identifiers.append(name)

What the index recorded

Signature
def add_identifier(self, name: str) -> None:
File
backend/app/codeintel/parsers/base.py
Lines
39–46
Parser
python-ast
Git blob
3ebc48248b33125ad21597173a82926893a501dc
Call sites
2 named, 0 resolved, 2 left unlinked

Read it on GitHub at this commit