Skip to content

Bug fix/csharp signature generation#63

Closed
NoahJCross wants to merge 1 commit intosplashkit:masterfrom
NoahJCross:bug-fix/csharp-signature-generation
Closed

Bug fix/csharp signature generation#63
NoahJCross wants to merge 1 commit intosplashkit:masterfrom
NoahJCross:bug-fix/csharp-signature-generation

Conversation

@NoahJCross
Copy link
Contributor

Description

The translator was generating incorrect instance names by using :name instead of :method_name, leading to invalid or non-existent function signatures. Additionally, some functions had null values for method_name because they didnt have an instance version, meaning docs_signatures_for was generating instances that didnt exist as well as incorrect instance signatures.

Changes

Switching to :method_name and adding a null check to skip non-existing instance functions resolved the problem.

How has this been tested?

ran docker-compose run --rm headerdoc docs and it generated the correct api.json data with the correct instance signatures

omckeon added a commit to splashkit/splashkit.io-starlight that referenced this pull request Dec 9, 2024
Copy link
Member

@macite macite left a comment

Choose a reason for hiding this comment

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

This looks good, but we need to remove the extra commit with the rust templates.

@macite macite force-pushed the bug-fix/csharp-signature-generation branch from 761f67d to 48eb65d Compare January 6, 2025 22:54
@omckeon
Copy link
Contributor

omckeon commented Feb 3, 2025

Closing this PR as it was merged from thoth-tech instead :)

@omckeon omckeon closed this Feb 3, 2025
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