Browse Source

Not to be confused by the macro eval target, but this removes commented function `haxe.macro.Context.eval` which causes dox to fail. Yes we should fix dox but we use versioning since a while, so if anyone needs this piece of code, please use git log :) (#7414)

Closes https://github.com/HaxeFoundation/haxe/issues/5956
Mark Knol 7 years ago
parent
commit
9b066d74db
1 changed files with 0 additions and 28 deletions
  1. 0 28
      std/haxe/macro/Context.hx

+ 0 - 28
std/haxe/macro/Context.hx

@@ -535,34 +535,6 @@ class Context {
 		return load("store_expr",1)(e);
 	}
 
-	/**
-		Evaluates `e` as macro code.
-
-		Any call to this function takes effect when the macro is executed, not
-		during typing. As a consequence, this function can not introduce new
-		local variables into the macro context and may have other restrictions.
-
-		Usage example:
-
-		```haxe
-		var e = macro function(i) return i * 2;
-		var f:Int -> Int = haxe.macro.Context.eval(e);
-		trace(f(2)); // 4
-		```
-
-		Code passed in from outside the macro cannot reference anything in its
-		context, such as local variables. However, it is possible to reference
-		static methods.
-
-		This method should be considered experimental.
-
-		If `e` is null, the result is unspecified.
-	**/
-	//@:require(haxe_ver >= 3.3)
-	//public static function eval( e : Expr ) : Dynamic {
-		//return load("eval",1)(e);
-	//}
-
 	/**
 		Manually adds a dependency between module `modulePath` and an external
 		file `externFile`.