Преглед на файлове

clarified haxe.macro.Compiler.keep behavior

Simon Krajewski преди 12 години
родител
ревизия
ebc2d438c5
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  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)
 	{