Browse Source

run analyzer transformation on variable expressions too

This might break a few things, let's see what the CI says.
Simon Krajewski 9 years ago
parent
commit
bc418fd125
1 changed files with 1 additions and 4 deletions
  1. 1 4
      analyzer.ml

+ 1 - 4
analyzer.ml

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