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

Go: Support Go 1.22 #15202

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Go: Support Go 1.22 #15202

wants to merge 4 commits into from

Conversation

mbg
Copy link
Member

@mbg mbg commented Dec 25, 2023

No description provided.

@github-actions github-actions bot added the Go label Jan 3, 2024
Copy link
Contributor

@owen-mc owen-mc left a 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 .

Comment on lines 9 to 14
not exists(string pkg, string name |
nd.(DataFlow::SummarizedParameterNode)
.getCallable()
.asSummarizedCallable()
.asFunction()
.hasQualifiedName(pkg, name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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?

Comment on lines 10 to 15
not exists(string pkg, string name |
pred.(DataFlow::SummarizedParameterNode)
.getCallable()
.asSummarizedCallable()
.asFunction()
.hasQualifiedName(pkg, name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants