Browse Source

clarified haxe.macro.Compiler.keep behavior

Simon Krajewski 12 years ago
parent
commit
ebc2d438c5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      std/haxe/macro/Compiler.hx

+ 5 - 1
std/haxe/macro/Compiler.hx

@@ -232,7 +232,11 @@ class Compiler {
 	}
 
 	/**
-		Mark a class (or array of classes) with the metadata @:keep
+		Mark a class (or array of classes) with the metadata @:keep.
+		
+		Note that this does not imply inclusion of the class(es): If a class is
+		neither referenced nor added via [Compiler.include], it will not be part
+		of the output even if @:keep was added.
 	**/
 	public static function keep(?path : String, ?paths : Array<String>, rec = false)
 	{