Skip to content
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

[gosrc2cpg] - Global variable as member nodes of package level TypeDecl #3756

Merged
merged 6 commits into from
Oct 25, 2023

Conversation

pandurangpatil
Copy link
Contributor

Follow up PR to the PR #3734 to model global variables as member nodes of Package level TypeDecl, and its access is converted to field access call.

Copy link
Collaborator

@DavidBakerEffendi DavidBakerEffendi left a comment

Choose a reason for hiding this comment

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

One thing I noticed when trying to bring Python to a similar design, was that the data-flow engine sees field accesses differently when looking at the DDG.

While GoLang is different, and does not have expressions on a module-level necessarily, it may be good to look at the PR to see how I dealt with this pattern: #3750

@DavidBakerEffendi DavidBakerEffendi merged commit 860f398 into joernio:master Oct 25, 2023
5 checks passed
@pandurangpatil pandurangpatil deleted the issue-3695-3 branch October 26, 2023 06:43
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.

2 participants