diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/Parser.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/Parser.cs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/Parser.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/Parser.cs index b2fad45..3ceb0df 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/Parser.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/Parser.cs | |||
@@ -44,6 +44,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog | |||
44 | yield return false; | 44 | yield return false; |
45 | } | 45 | } |
46 | 46 | ||
47 | // disable warning on l1, don't see how we can | ||
48 | // code this differently | ||
49 | #pragma warning disable 0168, 0219 | ||
50 | |||
47 | // Debug: Hand-modify this central predicate to do tail recursion. | 51 | // Debug: Hand-modify this central predicate to do tail recursion. |
48 | public static IEnumerable<bool> read_tokens(object arg1, object arg2, object arg3) | 52 | public static IEnumerable<bool> read_tokens(object arg1, object arg2, object arg3) |
49 | { | 53 | { |
@@ -188,7 +192,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog | |||
188 | // Compiler output follows. | 192 | // Compiler output follows. |
189 | 193 | ||
190 | class YPInnerClass { } | 194 | class YPInnerClass { } |
191 | static Type getDeclaringClass() { return typeof(YPInnerClass).DeclaringType; } | 195 | // static Type getDeclaringClass() { return typeof(YPInnerClass).DeclaringType; } |
192 | 196 | ||
193 | public static IEnumerable<bool> parseInput(object TermList) | 197 | public static IEnumerable<bool> parseInput(object TermList) |
194 | { | 198 | { |
@@ -224,11 +228,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog | |||
224 | if (YP.termEqual(Term, Atom.a(@"end_of_file"))) | 228 | if (YP.termEqual(Term, Atom.a(@"end_of_file"))) |
225 | { | 229 | { |
226 | yield break; | 230 | yield break; |
227 | goto cutIf1; | 231 | // goto cutIf1; |
228 | } | 232 | } |
229 | yield return false; | 233 | yield return false; |
230 | cutIf1: | 234 | // cutIf1: |
231 | { } | 235 | // { } |
232 | } | 236 | } |
233 | } | 237 | } |
234 | } | 238 | } |
@@ -4452,6 +4456,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog | |||
4452 | { } | 4456 | { } |
4453 | } | 4457 | } |
4454 | } | 4458 | } |
4455 | 4459 | #pragma warning restore 0168, 0219 | |
4456 | } | 4460 | } |
4457 | } | 4461 | } |