Add 'source' to RuntimeException

This commit is contained in:
Bartłomiej Pluta
2019-07-13 15:06:53 +02:00
parent 86cf5d01f3
commit b6983df2d3
6 changed files with 39 additions and 18 deletions

View File

@@ -6,13 +6,14 @@ from smnp.type.model import Type
class Environment():
def __init__(self, scopes, functions, methods):
def __init__(self, scopes, functions, methods, source):
self.scopes = scopes
self.functions = functions
self.methods = methods
self.customFunctions = []
self.customMethods = []
self.callStack = []
self.source = source
def invokeMethod(self, object, name, args):
builtinMethodResult = self._invokeBuiltinMethod(object, name, args)