Skip to content

C#: Correctly handle in arguments#437

Merged
hvitved merged 2 commits into
github:masterfrom
calumgrant:cs/in-parameters
Nov 15, 2018
Merged

C#: Correctly handle in arguments#437
hvitved merged 2 commits into
github:masterfrom
calumgrant:cs/in-parameters

Conversation

@calumgrant
Copy link
Copy Markdown
Contributor

The implementation of C# 7.2 in parameters was incomplete because it didn't test that expressions passed as in arguments were extracted correctly. In fact, the extractor completely failed to extract in arguments, resulting in Unknown argument type errors in csharp.log.

This PR fixes the C# extractor to recognise the in keyword, and creates a new expr_argument value 3 to indicate that the argument is passed as in. The dbscheme does not need to change.

Update the QL tests and libraries.

@calumgrant calumgrant added the C# label Nov 8, 2018
@calumgrant calumgrant requested a review from hvitved November 8, 2018 12:45
@calumgrant calumgrant requested a review from a team as a code owner November 8, 2018 12:45
hvitved
hvitved previously approved these changes Nov 8, 2018
Copy link
Copy Markdown
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

Nice and simple, perfect! :-)

@hvitved
Copy link
Copy Markdown
Contributor

hvitved commented Nov 12, 2018

Happy to merge after a rebase.

@hvitved hvitved merged commit 185700a into github:master Nov 15, 2018
cklin pushed a commit that referenced this pull request May 23, 2022
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.

2 participants