Skip to content

WIP: analysis: Add ASTTypeAnnotator.jl#620

Open
aviatesk wants to merge 1 commit intomasterfrom
avi/ASTTypeAnnotator
Open

WIP: analysis: Add ASTTypeAnnotator.jl#620
aviatesk wants to merge 1 commit intomasterfrom
avi/ASTTypeAnnotator

Conversation

@aviatesk
Copy link
Copy Markdown
Owner

@aviatesk aviatesk commented Apr 4, 2026

Implement the ASTTypeAnnotator pipeline, which takes a SyntaxTree, generates CodeInfo from it, and performs type annotation via abstract interpretation.
By maintaining a reverse mapping from CodeInfo back to SyntaxTree, we can trace from a specific statement in CodeInfo to its source representation.

This is needed for implementing type on hover, inlay type hints, and property completions, etc.

Marked as WIP since there are still many edge cases and inference result caching is not yet implemented.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 4, 2026

Codecov Report

❌ Patch coverage is 0% with 179 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.67%. Comparing base (c161e3c) to head (1058286).

Files with missing lines Patch % Lines
src/analysis/ASTTypeAnnotator.jl 0.00% 157 Missing ⚠️
src/utils/inference.jl 0.00% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #620      +/-   ##
==========================================
- Coverage   69.04%   67.67%   -1.38%     
==========================================
  Files          51       53       +2     
  Lines        8813     8992     +179     
==========================================
  Hits         6085     6085              
- Misses       2728     2907     +179     
Flag Coverage Δ
JETLS.jl 67.67% <0.00%> (-1.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aviatesk aviatesk force-pushed the avi/ASTTypeAnnotator branch from e355af5 to 355440b Compare April 14, 2026 10:05
Implement the `ASTTypeAnnotator` pipeline, which takes a `SyntaxTree`,
generates `CodeInfo` from it, and performs type annotation via abstract
interpretation.
By maintaining a reverse mapping from `CodeInfo` back to `SyntaxTree`,
we can trace from a specific statement in `CodeInfo` to its source
representation.

This is needed for implementing type on hover, inlay type hints, and
property completions, etc.

Marked as WIP since there are still many edge cases and inference
result caching is not yet implemented.
@aviatesk aviatesk force-pushed the avi/ASTTypeAnnotator branch from 355440b to 1058286 Compare April 14, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant