Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Feb 17, 2025

This PR adds BasicBlock.getLocation. In order to create synthetic location entities for basic blocks, care must be taken to not add a dependency on the data flow layer, since data flow nodes also synthesize locations. The solution is to create separate class layers for (1) DB locations only, (2) DB or basic block locations, and (3) DB, or basic block, or data flow node locations.

@github-actions github-actions bot added the Go label Feb 17, 2025
@hvitved hvitved force-pushed the go/basic-block-location branch 3 times, most recently from 4101601 to ce267e9 Compare February 17, 2025 19:46
@hvitved hvitved force-pushed the go/basic-block-location branch from ce267e9 to f72e1f6 Compare February 17, 2025 20:03
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Feb 18, 2025
@hvitved hvitved marked this pull request as ready for review February 18, 2025 08:35
Copilot AI review requested due to automatic review settings February 18, 2025 08:35
@hvitved hvitved requested a review from a team as a code owner February 18, 2025 08:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

@owen-mc
Copy link
Contributor

owen-mc commented Feb 26, 2025

Thanks for making this @hvitved . In the end I've decided to change the location of basic blocks to be a db location, so this approach isn't needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Go no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants