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: Support Go 1.22 #15202
base: main
Are you sure you want to change the base?
Go: Support Go 1.22 #15202
Conversation
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.
It should be possible to do the same for TypeParamType.ql. I've looked into it and we don't currently extract the needed information. I have put up a PR to fix this, which includes the test change: #15216 .
| not exists(string pkg, string name | | ||
| nd.(DataFlow::SummarizedParameterNode) | ||
| .getCallable() | ||
| .asSummarizedCallable() | ||
| .asFunction() | ||
| .hasQualifiedName(pkg, name) |
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.
| not exists(string pkg, string name | | |
| nd.(DataFlow::SummarizedParameterNode) | |
| .getCallable() | |
| .asSummarizedCallable() | |
| .asFunction() | |
| .hasQualifiedName(pkg, name) | |
| not nd instanceof DataFlow::SummarizedParameterNode |
I wonder if this would work just as well, now that we don't need to constrain pkg and name?
| not exists(string pkg, string name | | ||
| pred.(DataFlow::SummarizedParameterNode) | ||
| .getCallable() | ||
| .asSummarizedCallable() | ||
| .asFunction() | ||
| .hasQualifiedName(pkg, name) |
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.
| not exists(string pkg, string name | | |
| pred.(DataFlow::SummarizedParameterNode) | |
| .getCallable() | |
| .asSummarizedCallable() | |
| .asFunction() | |
| .hasQualifiedName(pkg, name) | |
| not pred instanceof DataFlow::SummarizedParameterNode |
I wonder if this would work just as well, now that we don't need to constrain pkg and name?
No description provided.