The extern
keyword causes the compiler to not generate the field in the output. This can be used in combination with the inline
keyword to force a field to be inlined (or cause an error if this is not possible). Forcing inline may be desirable in abstracts or extern classes.
Trivia:
:extern
metadataPrior to Haxe 4, this access modifier could only be applied to a field using the
:extern
metadata.