Visitar URL original
C# 12: Support for lambda `param` arguments and default arguments. by michaelnebel · Pull Request #15249 · github/codeql · GitHub
The Wayback Machine - https://web.archive.org/web/20240110001520/https://github.com/github/codeql/pull/15249
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

C# 12: Support for lambda param arguments and default arguments. #15249

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

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Jan 8, 2024 •

It turns out that the extractor works out of the box for params and default parameters for lambda expressions.
In this PR

  • Add Code QL library support for getting the arguments provided by params for delegate like types (these are not considered static call targets and thus the implementation for getRuntimeArgumentFromParameter has been updated to handle this case).
  • Add test for lambda arguments.
  • Add test for lambda default parameters.

@github-actions github-actions bot added the C# label Jan 8, 2024
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

1 participant