gitlab-ci: inject key for github.oauthtoken
[nit.git] / contrib / pep8analysis / src / flow_analysis / reaching_defs.nit
index 052d8df..0fe04ef 100644 (file)
@@ -14,7 +14,6 @@ end
 class ReachingDefsAnalysis
        super FineFlowAnalysis[ReachingDefsMap]
 
-       init do end
        redef fun is_forward do return true
 
        redef fun visit( node )
@@ -49,14 +48,14 @@ end
 redef class AInstruction
        redef fun accept_reaching_defs_analysis(v, ins, outs)
        do
-               if ins != null then outs.recover_with(ins)
+               if ins != null then outs.add_all(ins)
        end
 end
 
 redef class ALoadInstruction
        redef fun accept_reaching_defs_analysis(v, ins, outs)
        do
-               if ins != null then outs.recover_with(ins)
+               if ins != null then outs.add_all(ins)
 
                var variable = def_var
                if variable != null then
@@ -73,7 +72,7 @@ end
 redef class AStoreInstruction
        redef fun accept_reaching_defs_analysis(v, ins, outs)
        do
-               if ins != null then outs.recover_with(ins)
+               if ins != null then outs.add_all(ins)
 
                var variable = def_var
                if variable != null then