Browse Source

Rename `makeMacroPosition` to `here`

杨博 (Yang Bo) 11 years ago
parent
commit
ae7fa07ffc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/haxe/macro/ExprTools.hx

+ 2 - 2
std/haxe/macro/ExprTools.hx

@@ -36,9 +36,9 @@ using Lambda;
 class ExprTools {
 class ExprTools {
 
 
 	/**
 	/**
-		Returns the `Position` where the caller of `makeMacroPosition` is.
+		Returns the `Position` where the caller of `here` is.
 	**/
 	**/
-	macro public static function makeMacroPosition():ExprOf<Position> {
+	macro public static function here():ExprOf<Position> {
 		var positionExpr = Context.makeExpr(Context.getPosInfos(Context.currentPos()), Context.currentPos());
 		var positionExpr = Context.makeExpr(Context.getPosInfos(Context.currentPos()), Context.currentPos());
 		if (Context.defined("macro")) {
 		if (Context.defined("macro")) {
 			return macro Context.makePosition($positionExpr);
 			return macro Context.makePosition($positionExpr);