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

Fix 499 - generating parameter names for external functions #500

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

EvanMachusak
Copy link
Collaborator

@EvanMachusak EvanMachusak commented Aug 30, 2024

When generating an automatic parameter name for a generic type, we strip the @ character if it was added normalizing the generic type argument name (e.g., because it's a C# keyword like decimal). Example of a bad name was nullable_@decimal which is now produced as nullable_decimal.

Also made the definitions parameter of AssemblyCompiler.Compile no longer optional. When not specified, the function does nothing.

Tested by CqlToElmTests/FunctionDefinitionTest/External_Function

… middle of the string when the type names are keywords
@baseTwo baseTwo merged commit a44c38b into develop-2.0 Sep 2, 2024
2 checks passed
@baseTwo baseTwo deleted the 499-external-parameter-naming branch September 2, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants