nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
300cdec
)
frontend: fix missing location
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 28 Sep 2017 14:38:13 +0000
(10:38 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 16 Feb 2018 16:25:35 +0000
(11:25 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
src/frontend/explain_assert.nit
patch
|
blob
|
history
diff --git
a/src/frontend/explain_assert.nit
b/src/frontend/explain_assert.nit
index
b2350a4
..
326f588
100644
(file)
--- a/
src/frontend/explain_assert.nit
+++ b/
src/frontend/explain_assert.nit
@@
-35,6
+35,7
@@
module explain_assert
import astbuilder
intrude import literal # for value=
intrude import typing # for mtype=
+import astvalidation
import explain_assert_api
@@
-145,7
+146,9
@@
private class ExplainAssertVisitor
end
# Set the expression value aside
+ var old_parent = v_expr.parent
var expr = v_expr.make_var_read
+ if old_parent != null then old_parent.validate
# Protect nullable types
if mtype isa MNullType then