naive_interpreter: make `InterpreterFrame::map` and `call_commons` public
authorJean Privat <jean@pryen.org>
Tue, 21 Nov 2017 16:34:32 +0000 (11:34 -0500)
committerJean Privat <jean@pryen.org>
Tue, 21 Nov 2017 17:13:34 +0000 (12:13 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/interpreter/naive_interpreter.nit

index 616977a..5ccc8da 100644 (file)
@@ -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)