Jelajahi Sumber

Format in Haxe coding style

杨博 (Yang Bo) 11 tahun lalu
induk
melakukan
2d56796cdc
1 mengubah file dengan 3 tambahan dan 7 penghapusan
  1. 3 7
      std/haxe/macro/ExprTools.hx

+ 3 - 7
std/haxe/macro/ExprTools.hx

@@ -38,15 +38,11 @@ class ExprTools {
 	/**
 	/**
 		Returns the `Position` where the caller of `makeMacroPosition` is.
 		Returns the `Position` where the caller of `makeMacroPosition` is.
 	**/
 	**/
-	macro public static function makeMacroPosition():ExprOf<Position>
-	{
+	macro public static function makeMacroPosition():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);
-		}
-		else
-		{
+		} else {
 			return positionExpr;
 			return positionExpr;
 		}
 		}
 	}
 	}