From 42e1c4ebe2e245ce5df4554f6d968625cb8386cd Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 21 Nov 2017 11:34:32 -0500 Subject: [PATCH] naive_interpreter: make `InterpreterFrame::map` and `call_commons` public Signed-off-by: Jean Privat --- src/interpreter/naive_interpreter.nit | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/interpreter/naive_interpreter.nit b/src/interpreter/naive_interpreter.nit index 616977a..5ccc8da 100644 --- a/src/interpreter/naive_interpreter.nit +++ b/src/interpreter/naive_interpreter.nit @@ -825,7 +825,7 @@ class InterpreterFrame super Frame # Mapping between a variable and the current value - private var map: Map[Variable, Instance] = new HashMap[Variable, Instance] + var map: Map[Variable, Instance] = new HashMap[Variable, Instance] end redef class ANode @@ -874,7 +874,10 @@ redef class AMethPropdef return res end - private fun call_commons(v: NaiveInterpreter, mpropdef: MMethodDef, arguments: Array[Instance], f: Frame): nullable Instance + # Execution of the body of the method + # + # It handle the common special cases: super, intern, extern + fun call_commons(v: NaiveInterpreter, mpropdef: MMethodDef, arguments: Array[Instance], f: Frame): nullable Instance do v.frames.unshift(f) -- 1.7.9.5