Prechádzať zdrojové kódy

document haxe.macro.Compiler.include

Simon Krajewski 11 rokov pred
rodič
commit
60500b58e9
1 zmenil súbory, kde vykonal 9 pridanie a 1 odobranie
  1. 9 1
      std/haxe/macro/Compiler.hx

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

@@ -90,7 +90,15 @@ class Compiler {
 	}
 
 	/**
-		Include for compilation all classes defined in the given package excluding the ones referenced in the ignore list.
+		Includes all modules in package `pack` in the compilation.
+
+		In order to include single modules, their paths can be listed directly
+		on command line: `haxe ... ModuleName pack.ModuleName`.
+
+		@param rec If true, recursively adds all sub-packages.
+		@param ignore Array of module names to ignore for inclusion.
+		@param classPaths Array of additional class paths to check. This can be
+		    used to add packages outside the usual class paths.
 	**/
 	public static function include( pack : String, ?rec = true, ?ignore : Array<String>, ?classPaths : Array<String> ) {
 		var skip = if( ignore == null ) {