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

#noconstructor should also include the json loader constructor #4216

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Nov 1, 2023

The JSONLoader constructor is not omitted when the #noconstructor directive is active. This is because it is generated via a non-standard way.

This PR adds a #no_methodconstructor directive, which allows you to ignore constructors generated via these special methods.

This PR also supports casing for the #noXXX directive. Some functions can not be ignored because they are written in camelcase.

@fruffy fruffy added the core Topics concerning the core segments of the compiler (frontend, midend, parser) label Nov 3, 2023
@fruffy fruffy merged commit 1f48e6f into main Nov 6, 2023
13 checks passed
@fruffy fruffy deleted the fruffy/fix_json_loader branch November 6, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Topics concerning the core segments of the compiler (frontend, midend, parser)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants