diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs index 3d86905..3a15449 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs | |||
@@ -44,9 +44,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog | |||
44 | yield return false; | 44 | yield return false; |
45 | } | 45 | } |
46 | 46 | ||
47 | // disable warning: don't see how we can code this differently short | 47 | // disable warning on l1, don't see how we can |
48 | // of rewriting the whole thing | 48 | // code this differently |
49 | #pragma warning disable 0168, 0219 | 49 | #pragma warning disable 0168, 0219 |
50 | 50 | ||
51 | // Debug: Hand-modify this central predicate to do tail recursion. | 51 | // Debug: Hand-modify this central predicate to do tail recursion. |
52 | 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) |
@@ -228,12 +228,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog | |||
228 | if (YP.termEqual(Term, Atom.a(@"end_of_file"))) | 228 | if (YP.termEqual(Term, Atom.a(@"end_of_file"))) |
229 | { | 229 | { |
230 | yield break; | 230 | yield break; |
231 | // unreachable code: | ||
232 | // goto cutIf1; | 231 | // goto cutIf1; |
233 | } | 232 | } |
234 | yield return false; | 233 | yield return false; |
235 | // cutIf1: | 234 | // cutIf1: |
236 | { } | 235 | // { } |
237 | } | 236 | } |
238 | } | 237 | } |
239 | } | 238 | } |
@@ -4457,6 +4456,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog | |||
4457 | { } | 4456 | { } |
4458 | } | 4457 | } |
4459 | } | 4458 | } |
4460 | #pragma warning restore 0168 | 4459 | #pragma warning restore 0168, 0219 |
4461 | } | 4460 | } |
4462 | } | 4461 | } |