diff options
Diffstat (limited to 'src/front/scope.py')
-rw-r--r-- | src/front/scope.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/front/scope.py b/src/front/scope.py index a15ed1d..533497d 100644 --- a/src/front/scope.py +++ b/src/front/scope.py @@ -20,5 +20,8 @@ class Scope(object): if symbol not in self.__functions[self.__current_function]: self.__functions[self.__current_function].append(symbol) + def contains(self, name): + return name in self.__functions[self.__current_function] + def __str__(self): return "<Scope: %s>" % str(self.__functions) |