feat(semantic/example): add detailed references info#17938
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
425b459 to
3a06805
Compare
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
There was a problem hiding this comment.
Pull request overview
This PR adds a new --symbol-references flag to the semantic analysis example that provides detailed visual diagnostics showing where each symbol is declared and how it's referenced throughout the code. This complements the existing --symbols flag by providing a more graphical, human-readable view of symbol usage using the diagnostic reporting infrastructure.
Changes:
- Added new CLI flag
--symbol-referencesto display detailed reference information - Integrated graphical diagnostic reporting to visualize symbol declarations and references
- Updated documentation to describe the new option
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
 While possible with the current example infra, it's hard to understand what exactly points where, by reading the ids, and comparing it vs the ast. This change makes it incredibly easy to identify what symbol a refernce points to.
3a06805 to
6b29bd1
Compare

While possible with the current example infra, it's hard to understand what exactly points where, by reading the ids, and comparing it vs the ast.
This change makes it incredibly easy to identify what symbol a refernce points to.