Generalize base_block in control_flow.
authorJean Privat <jean@pryen.org>
Fri, 6 Feb 2009 14:42:38 +0000 (09:42 -0500)
committerJean Privat <jean@pryen.org>
Fri, 6 Feb 2009 14:42:38 +0000 (09:42 -0500)
src/syntax/control_flow.nit

index 5f9b1f2..11371ac 100644 (file)
@@ -89,7 +89,7 @@ private class ControlFlowContext
        readable writable attr _already_unreash: Bool = false
 
        # Current controlable block (for or while)
-       readable writable attr _base_block: AControlableBlock
+       readable writable attr _base_block: PNode = null
 
        # Set of variable that are set (assigned)
        readable attr _set_variables: HashSet[Variable] = new HashSet[Variable]
@@ -176,7 +176,7 @@ end
 
 class ABlockControler
 special PExpr
-       readable attr _block: AControlableBlock
+       readable attr _block: PNode
 end
 
 redef class ABreakExpr