From 05c8bce662a6ceab008b2006e95185260f3b3939 Mon Sep 17 00:00:00 2001 From: arookas Date: Wed, 3 Feb 2016 22:44:28 -0500 Subject: [PATCH] Added IEnumerable implementation --- ssc/scope.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ssc/scope.cs b/ssc/scope.cs index df40ffc..c7ae774 100644 --- a/ssc/scope.cs +++ b/ssc/scope.cs @@ -89,7 +89,7 @@ namespace arookas { } } - class sunScope { + class sunScope : IEnumerable { List mStorables; sunScopeType mType; @@ -142,6 +142,13 @@ namespace arookas { public sunConstantSymbol ResolveConstant(string name) { return ResolveStorable(name) as sunConstantSymbol; } + + public IEnumerator GetEnumerator() { + return mStorables.GetEnumerator(); + } + IEnumerator IEnumerable.GetEnumerator() { + return GetEnumerator(); + } } enum sunScopeType {