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

Bug fix/csharp signature generation #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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.

2 participants