nitc/parser: Make `AReturnExpr` an AEscapeExpr
authorJean Privat <jean@pryen.org>
Fri, 8 Apr 2016 15:45:15 +0000 (11:45 -0400)
committerJean Privat <jean@pryen.org>
Fri, 8 Apr 2016 15:45:15 +0000 (11:45 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/parser/parser_nodes.nit

index 9fe32f6..ba5b8f3 100644 (file)
@@ -1776,13 +1776,10 @@ end
 
 # A `return` statement. eg `return x`
 class AReturnExpr
-       super AExpr
+       super AEscapeExpr
 
        # The `return` keyword
        var n_kwreturn: nullable TKwreturn = null is writable
-
-       # The return value, if any
-       var n_expr: nullable AExpr = null is writable
 end
 
 # A `yield` statement. eg `yield x`