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 symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| line_chunks | __init__.py | through an import |
| parse_python | python_parser.py | through an import |
| parse_treesitter | treesitter_parser.py | through an import |
| Symbol | File | Resolved by |
|---|---|---|
| base | base.py | same 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 = FalseWhat 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
