Back to the room

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

Code Observatory / class

ParseResult

codeintel.parsers.base.ParseResult

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 (3)
SymbolFileResolved by
line_chunks__init__.pythrough an import
parse_pythonpython_parser.pythrough an import
parse_treesittertreesitter_parser.pythrough an import
Inside (1)
SymbolFileResolved by
basebase.pysame file
codeintel.parsers.base.ParseResultbackend/app/codeintel/parsers/base.py, lines 49–63Open source
@dataclassclass ParseResult:    language: str    # "python-ast" | "tree-sitter" | "line-fallback"    parser: str    symbols: list[Symbol]    # Raw import targets: module paths, header names, package import paths.    imports: list[str] = field(default_factory=list)    # Local name -> fully qualified imported name (Python only), used to    # resolve call targets across files.    import_map: dict[str, str] = field(default_factory=dict)    # Why AST extraction was not used (None when parser != "line-fallback").    fallback_reason: str | None = None    # tree-sitter reported syntax errors but still produced symbols.    partial: bool = False

What the index recorded

Signature
class ParseResult:
File
backend/app/codeintel/parsers/base.py
Lines
49–63
Parser
python-ast
Git blob
3ebc48248b33125ad21597173a82926893a501dc
Call sites
1 named, 0 resolved, 1 left unlinked

Read it on GitHub at this commit