nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a435fdc
)
parallelization_phase: use `ANode::validate` after AST shenanigans.
author
Jean Privat
<jean@pryen.org>
Sat, 17 Oct 2015 02:18:44 +0000
(22:18 -0400)
committer
Jean Privat
<jean@pryen.org>
Sat, 17 Oct 2015 02:18:44 +0000
(22:18 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/frontend/parallelization_phase.nit
patch
|
blob
|
history
diff --git
a/src/frontend/parallelization_phase.nit
b/src/frontend/parallelization_phase.nit
index
e234a02
..
237eba2
100644
(file)
--- a/
src/frontend/parallelization_phase.nit
+++ b/
src/frontend/parallelization_phase.nit
@@
-22,6
+22,7
@@
private import parser_util
import modelize
import astbuilder
private import annotation
+private import astvalidation
redef class ToolContext
# Transforms a function annotated with "threaded"
@@
-140,7
+141,10
@@
return thread
var newbody = toolcontext.parse_something(s_newbody)
nmethdef.n_block = newbody.as(ABlockExpr)
+ nmethdef.validate
+
# Add the new class to the module
amod.n_classdefs.add(classdef)
+ classdef.validate
end
end