Skip to content

[REFACTOR] Clean up HScriptedClassMacro#399

Open
NotHyper-474 wants to merge 1 commit intoFunkinCrew:experimentalfrom
NotHyper-474:hscripted-macro-cleanup
Open

[REFACTOR] Clean up HScriptedClassMacro#399
NotHyper-474 wants to merge 1 commit intoFunkinCrew:experimentalfrom
NotHyper-474:hscripted-macro-cleanup

Conversation

@NotHyper-474
Copy link
Copy Markdown
Collaborator

@NotHyper-474 NotHyper-474 commented Apr 24, 2026

This PR aims to improve the HScriptedClassMacro class readability by improving the usage of features of the Haxe language throughout the code.

  • Removes unused local variables and code.

  • Applies the use of Context.follow to get rid of TLazy (constructors don't like this though, so not for them...)

  • Adds the needed imports for the types it uses and replaces the use of the full module name where those are referenced.

  • Simplifies the checks for metadata.

  • Moves the check for display mode to before the field overriding and after the addition of the basic functions (scriptInit, scriptGet, etc.) to prevent issues with errors about those not being found on the language server.

    • Screenshot included Captura_de_tela_20260412_221302
  • Improves the usage of pattern matching in switch cases to reduce verbosity and/or boilerplate.

@VirtuGuy
Copy link
Copy Markdown

pico surprised

@requazar
Copy link
Copy Markdown

peak

@NotHyper-474 NotHyper-474 force-pushed the hscripted-macro-cleanup branch 2 times, most recently from 6aacb4d to a4ce778 Compare April 29, 2026 04:19
@NotHyper-474 NotHyper-474 force-pushed the hscripted-macro-cleanup branch from a4ce778 to d2d421b Compare May 5, 2026 02:57
@NotHyper-474 NotHyper-474 marked this pull request as ready for review May 5, 2026 02:59
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