Skip to content

[FEATURE] Add support for multiple compiler-metadata defines - #507

Open
nykwono wants to merge 6 commits into
FunkinCrew:developfrom
nykwono:compiler-metadata-impls
Open

nykwono wants to merge 6 commits into
FunkinCrew:developfrom
nykwono:compiler-metadata-impls

Conversation

@nykwono

@nykwono nykwono commented Sep 18, 2026

Copy link
Copy Markdown

This PR adds support for several compile defines including:

@:persistent - Stores the value of a static field even after scripts were cleared.
@:using - When used on any type (interfaces, classes, even enums), this'll work just like how the using keyword works where you can call given static using function from the instance field.
@:noUsing - Prevents the given static function from being used when a class uses the using keyword on its class
@:noPrivateAccess - Completely prevents private access support.
@:require - Can be used on a class or field to require that the user has the given preprocessor condition met.
@:deprecated - This metadata can be used for if you want to deprecate any fields, it'll give a warning for if the field is referenced, or imported as a class.

@nykwono
nykwono force-pushed the compiler-metadata-impls branch from e1b4498 to 02e4f68 Compare September 20, 2026 17:19
@nykwono
nykwono force-pushed the compiler-metadata-impls branch from 451f6db to 2d76d19 Compare September 21, 2026 07:35
@nykwono
nykwono marked this pull request as ready for review September 21, 2026 08:51
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.

1 participant