-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C#: * on Source locations in BMN.
#20555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#: * on Source locations in BMN.
#20555
Conversation
bae56f5 to
3f12101
Compare
3f12101 to
3ee0e14
Compare
3ee0e14 to
199099c
Compare
054a3a1 to
9ec0c9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modifies the C# extractor to use star IDs (* IDs) for source locations when extracting in BMN (Build Mode None) mode. The change is designed to improve extraction performance by reducing TRAP file size and eliminating location de-duplication overhead while maintaining transparency to end-users.
- Added logic to use star IDs (
*) instead of traditional location IDs when in standalone extraction mode - Updated location ID writing methods to conditionally output star IDs
- Added change notes documenting the performance improvement
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| csharp/ql/lib/change-notes/2025-10-10-starid-locations.md | Documents the change to use star IDs for location extraction with performance benefits |
| csharp/extractor/Semmle.Extraction.CSharp/Entities/Locations/NonGeneratedSourceLocation.cs | Implements conditional star ID writing for both quoted and unquoted location IDs in standalone mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hooray 🎉
In this PR we change the extractor to use
*IDs for locations when extracting in BMN.DCA looks good.