Răsfoiți Sursa

Revert "run analyzer transformation on variable expressions too"

This reverts commit bc418fd125554c505880a0b3df9b0b218acd0a38.
Simon Krajewski 9 ani în urmă
părinte
comite
47727ce3e5
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      analyzer.ml

+ 4 - 1
analyzer.ml

@@ -2850,7 +2850,10 @@ module Run = struct
 
 	let run_on_class ctx config c =
 		let config = update_config_from_meta config c.cl_meta in
-		let process_field cf = run_on_field ctx config c cf in
+		let process_field cf = match cf.cf_kind with
+			| Method _ -> run_on_field ctx config c cf
+			| _ -> ()
+		in
 		List.iter process_field c.cl_ordered_fields;
 		List.iter process_field c.cl_ordered_statics;
 		(match c.cl_constructor with