-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Go: Add models-as-data content for pointer content #13454
Go: Add models-as-data content for pointer content #13454
Conversation
d9faee1
to
8b292fa
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.
Really cool with an extension to the MaD DSL for GO :-)
@@ -342,6 +342,8 @@ predicate parseContent(string component, DataFlow::Content content) { | |||
component = "MapKey" and content instanceof DataFlow::MapKeyContent | |||
or | |||
component = "MapValue" and content instanceof DataFlow::MapValueContent | |||
or | |||
component = "Dereference" and content instanceof DataFlow::PointerContent |
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.
Consider updating the header comment in this file for input/output that it is now possible to use "Dereference" as a part of an access path.
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.
Access paths weren't mentioned. I've copied what C# says about it and updated it to newer syntax without "of". I've taken the liberty of updating the C# one as well.
8b292fa
to
04ff89e
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.
Looks good to me and thank you for the C# update as well 👍
This is based on #13453 and fixes the failing tests added in that PR.