瀏覽代碼

fix some crazy indentation [skip ci]

Dan Korostelev 11 年之前
父節點
當前提交
9ef61eec7c
共有 1 個文件被更改,包括 19 次插入17 次删除
  1. 19 17
      genjava.ml

+ 19 - 17
genjava.ml

@@ -1794,23 +1794,25 @@ let configure gen =
 			| None -> ()
 			| Some init ->
 				write w "static ";
-				expr_s w (mk_block init));
-				(if is_some cl.cl_constructor then gen_class_field w false cl is_final (get cl.cl_constructor));
-				(if not cl.cl_interface then
-				List.iter (gen_class_field w true cl is_final) cl.cl_ordered_statics);
-				List.iter (gen_class_field w false cl is_final) cl.cl_ordered_fields;
-				end_block w;
-				if should_close then end_block w;
-
-				(* add imports *)
-				List.iter (function
-					| ["haxe";"root"], _ | [], _ -> ()
-					| path ->
-							write w_header "import ";
-							write w_header (path_s path []);
-							write w_header ";\n"
-				) !imports;
-				add_writer w w_header
+				expr_s w (mk_block init)
+		);
+
+		(if is_some cl.cl_constructor then gen_class_field w false cl is_final (get cl.cl_constructor));
+		(if not cl.cl_interface then List.iter (gen_class_field w true cl is_final) cl.cl_ordered_statics);
+		List.iter (gen_class_field w false cl is_final) cl.cl_ordered_fields;
+
+		end_block w;
+		if should_close then end_block w;
+
+		(* add imports *)
+		List.iter (function
+			| ["haxe";"root"], _ | [], _ -> ()
+			| path ->
+					write w_header "import ";
+					write w_header (path_s path []);
+					write w_header ";\n"
+		) !imports;
+		add_writer w w_header
 	in