Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
grammar_status
codeintel.parsers.treesitter_parser.grammar_status
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 |
|---|---|---|
| _get_parser | treesitter_parser.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| system_status | router.py | unique name |
| Symbol | File | Resolved by |
|---|---|---|
| treesitter_parser | treesitter_parser.py | same file |
codeintel.parsers.treesitter_parser.grammar_statusbackend/app/codeintel/parsers/treesitter_parser.py, lines 321–330Open source
def grammar_status() -> dict[str, str]: """``{grammar: "ok" | "grammar_unavailable:<pkg>"}`` for health checks.""" status = {} for grammar in GRAMMAR_PACKAGES: try: _get_parser(grammar) status[grammar] = "ok" except ImportError as exc: status[grammar] = str(exc) return statusWhat the index recorded
- Signature
def grammar_status() -> dict[str, str]:- File
backend/app/codeintel/parsers/treesitter_parser.py- Lines
- 321–330
- Parser
- python-ast
- Git blob
bf0c9a8044cadd3452ebf5ffa82b866ae00395a9- Call sites
- 2 named, 1 resolved, 1 left unlinked
- Outside this subset
- 2 more edges reach code outside the graph shown here
