Skip to content

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

Merged
hongjr03 merged 22 commits into
masterfrom
refactor/analysis-snapshot
Jul 15, 2026
Merged

refactor(analysis): unify profile parsing and diagnostics snapshots#300
hongjr03 merged 22 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/

@hongjr03 hongjr03 force-pushed the refactor/analysis-snapshot branch from 0fd90ad to 5a4d1d3 Compare July 15, 2026 14:00
FileId's field is private on master after #301; update tests and
silence clippy too_many_arguments on snapshot/key constructors.
@hongjr03 hongjr03 marked this pull request as ready for review July 15, 2026 14:09
@hongjr03 hongjr03 merged commit 9855b53 into master Jul 15, 2026
18 checks passed
@hongjr03 hongjr03 deleted the refactor/analysis-snapshot branch July 15, 2026 14:10
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