浏览代码

Format in Haxe coding style

杨博 (Yang Bo) 11 年之前
父节点
当前提交
2d56796cdc
共有 1 个文件被更改,包括 3 次插入7 次删除
  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.
 	**/
-	macro public static function makeMacroPosition():ExprOf<Position>
-	{
+	macro public static function makeMacroPosition():ExprOf<Position> {
 		var positionExpr = Context.makeExpr(Context.getPosInfos(Context.currentPos()), Context.currentPos());
-		if (Context.defined("macro"))
-		{
+		if (Context.defined("macro")) {
 			return macro Context.makePosition($positionExpr);
-		}
-		else
-		{
+		} else {
 			return positionExpr;
 		}
 	}