haXe API Documentation
Back | Index
class haxe.macro.Compiler
Available in neko
All these methods can be called for compiler configuration macros.
static function addMetadata(meta : String, className : String, ?field : String, ?isStatic : Bool) : Void
static function exclude(pack : String, ?rec : Bool) : Void
Exclude a given class or a complete package from being generated.
static function excludeFile(fileName : String) : Void
Exclude classes listed in an extern file (one per line) from being generated.
static function include(pack : String, ?rec : Bool, ?ignore : Array<String>) : Void
Include for compilation all classes defined in the given package excluding the ones referenced in the ignore list.
static function keep(?path : String, ?paths : Array<String>, ?rec : Bool) : Void
Mark a class (or array of classes) with the metadata @:keep
static function patchTypes(file : String) : Void
Load a type patch file that can modify declared classes fields types
static function removeField(className : String, field : String, ?isStatic : Bool) : Void
static function setCustomJSGenerator(callb : JSGenApi -> Void) : Void
Change the default JS output by using a custom generator callback
static function setFieldType(className : String, field : String, type : String, ?isStatic : Bool) : Void
Back | Index