Skip to content

refactor(analysis): unify profile parsing and diagnostics snapshots#300

Draft
hongjr03 wants to merge 21 commits into
masterfrom
refactor/analysis-snapshot
Draft

refactor(analysis): unify profile parsing and diagnostics snapshots#300
hongjr03 wants to merge 21 commits into
masterfrom
refactor/analysis-snapshot

Conversation

@hongjr03

@hongjr03 hongjr03 commented Jul 14, 2026

Copy link
Copy Markdown
Member

Unify profile compilation parsing around analysis snapshot context, so parsing, semantic compilation, and diagnostics share one consistent snapshot lifecycle. This removes redundant document revisions and standalone source parsing, reuses cached profile analysis and syntax trees, and adds the Slang FFI access needed to retain source metadata without keeping unnecessary syntax trees alive.

Diagnostics are now owned by the active analysis snapshot and preserve profile vide diagnostics across updates, ensuring results always correspond to the snapshot that produced them. The change also updates coverage for parse reuse, preprocessing behavior, and snapshot freshness, and adds tracing for profile-root parsing.

@github-actions

Copy link
Copy Markdown

Docs preview: https://vide.pascal-lab.net/preview/pr-300/

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