nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a15b80c
)
nitc/parser: Make `AReturnExpr` an AEscapeExpr
author
Jean Privat
<jean@pryen.org>
Fri, 8 Apr 2016 15:45:15 +0000
(11:45 -0400)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/parser/parser_nodes.nit
b/src/parser/parser_nodes.nit
index
9fe32f6
..
ba5b8f3
100644
(file)
--- a/
src/parser/parser_nodes.nit
+++ b/
src/parser/parser_nodes.nit
@@
-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`