syntax: remove reachability test in ABreakExpr
authorJean Privat <jean@pryen.org>
Mon, 18 Jan 2010 17:09:39 +0000 (12:09 -0500)
committerJean Privat <jean@pryen.org>
Mon, 18 Jan 2010 17:09:39 +0000 (12:09 -0500)
Since unreachable statements are no more visited.

Signed-off-by: Jean Privat <jean@pryen.org>

src/syntax/typing.nit

index adc5736..a1e8b64 100644 (file)
@@ -437,12 +437,11 @@ end
 redef class ABreakExpr
        redef fun after_typing(v)
        do
-               var unreash = v.variable_ctx.unreash
                v.variable_ctx.unreash = true
                var esc = compute_escapable_block(v.escapable_ctx)
                if esc == null then return
 
-               if not unreash then esc.break_variable_contexts.add(v.variable_ctx)
+               esc.break_variable_contexts.add(v.variable_ctx)
 
                var bl = esc.break_list
                if n_expr == null and bl != null then