From f1bd1aeee9499b07c10cb21ef37483e350326bf4 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 16 Oct 2015 22:18:44 -0400 Subject: [PATCH] parallelization_phase: use `ANode::validate` after AST shenanigans. Signed-off-by: Jean Privat --- src/frontend/parallelization_phase.nit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/parallelization_phase.nit b/src/frontend/parallelization_phase.nit index e234a02..237eba2 100644 --- 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 -- 1.7.9.5