squashing warnings critters
parent
4350613f1d
commit
1e39bfb036
|
@ -249,6 +249,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
|
||||||
object[] arguments = YP.getFunctorArgs(Head);
|
object[] arguments = YP.getFunctorArgs(Head);
|
||||||
|
|
||||||
// We always match Head from _allAnswers, and the Body is Atom.a("true").
|
// We always match Head from _allAnswers, and the Body is Atom.a("true").
|
||||||
|
#pragma warning disable 0168
|
||||||
foreach (bool l1 in YP.unify(Body, Atom.a("true")))
|
foreach (bool l1 in YP.unify(Body, Atom.a("true")))
|
||||||
{
|
{
|
||||||
// The caller can assert another answer into this same predicate during yield, so we have to
|
// The caller can assert another answer into this same predicate during yield, so we have to
|
||||||
|
@ -259,6 +260,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
|
||||||
yield return false;
|
yield return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 0168
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<bool> retract(object Head, object Body)
|
public IEnumerable<bool> retract(object Head, object Body)
|
||||||
|
@ -268,7 +270,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
|
||||||
throw new PrologException("instantiation_error", "Head is an unbound variable");
|
throw new PrologException("instantiation_error", "Head is an unbound variable");
|
||||||
object[] arguments = YP.getFunctorArgs(Head);
|
object[] arguments = YP.getFunctorArgs(Head);
|
||||||
|
|
||||||
// We always match Head from _allAnswers, and the Body is Atom.a("true").
|
// We always match Head from _allAnswers, and the Body is
|
||||||
|
// Atom.a("true").
|
||||||
|
#pragma warning disable 0168
|
||||||
foreach (bool l1 in YP.unify(Body, Atom.a("true")))
|
foreach (bool l1 in YP.unify(Body, Atom.a("true")))
|
||||||
{
|
{
|
||||||
// The caller can assert another answer into this same predicate during yield, so we have to
|
// The caller can assert another answer into this same predicate during yield, so we have to
|
||||||
|
@ -283,6 +287,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 0168
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -673,8 +673,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
|
||||||
object[] args = new object[(int)Arity];
|
object[] args = new object[(int)Arity];
|
||||||
for (int i = 0; i < args.Length; ++i)
|
for (int i = 0; i < args.Length; ++i)
|
||||||
args[i] = new Variable();
|
args[i] = new Variable();
|
||||||
|
#pragma warning disable 0219
|
||||||
foreach (bool l1 in YP.unify(Term, Functor.make((Atom)FunctorName, args)))
|
foreach (bool l1 in YP.unify(Term, Functor.make((Atom)FunctorName, args)))
|
||||||
yield return false;
|
yield return false;
|
||||||
|
#pragma warning restore 0219
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2399,11 +2401,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
|
||||||
if (_Head == null || _Body == null)
|
if (_Head == null || _Body == null)
|
||||||
yield break;
|
yield break;
|
||||||
|
|
||||||
|
#pragma warning disable 0168
|
||||||
foreach (bool l1 in YP.unify(Head, _Head))
|
foreach (bool l1 in YP.unify(Head, _Head))
|
||||||
{
|
{
|
||||||
foreach (bool l2 in YP.unify(Body, _Body))
|
foreach (bool l2 in YP.unify(Body, _Body))
|
||||||
yield return false;
|
yield return false;
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 0168
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -249,6 +249,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||||
object[] arguments = YP.getFunctorArgs(Head);
|
object[] arguments = YP.getFunctorArgs(Head);
|
||||||
|
|
||||||
// We always match Head from _allAnswers, and the Body is Atom.a("true").
|
// We always match Head from _allAnswers, and the Body is Atom.a("true").
|
||||||
|
#pragma warning disable 0168
|
||||||
foreach (bool l1 in YP.unify(Body, Atom.a("true")))
|
foreach (bool l1 in YP.unify(Body, Atom.a("true")))
|
||||||
{
|
{
|
||||||
// The caller can assert another answer into this same predicate during yield, so we have to
|
// The caller can assert another answer into this same predicate during yield, so we have to
|
||||||
|
@ -259,6 +260,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||||
yield return false;
|
yield return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 0168
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<bool> retract(object Head, object Body)
|
public IEnumerable<bool> retract(object Head, object Body)
|
||||||
|
@ -268,7 +270,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||||
throw new PrologException("instantiation_error", "Head is an unbound variable");
|
throw new PrologException("instantiation_error", "Head is an unbound variable");
|
||||||
object[] arguments = YP.getFunctorArgs(Head);
|
object[] arguments = YP.getFunctorArgs(Head);
|
||||||
|
|
||||||
// We always match Head from _allAnswers, and the Body is Atom.a("true").
|
// We always match Head from _allAnswers, and the Body is
|
||||||
|
// Atom.a("true").
|
||||||
|
#pragma warning disable 0168
|
||||||
foreach (bool l1 in YP.unify(Body, Atom.a("true")))
|
foreach (bool l1 in YP.unify(Body, Atom.a("true")))
|
||||||
{
|
{
|
||||||
// The caller can assert another answer into this same predicate during yield, so we have to
|
// The caller can assert another answer into this same predicate during yield, so we have to
|
||||||
|
@ -283,6 +287,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 0168
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -673,8 +673,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||||
object[] args = new object[(int)Arity];
|
object[] args = new object[(int)Arity];
|
||||||
for (int i = 0; i < args.Length; ++i)
|
for (int i = 0; i < args.Length; ++i)
|
||||||
args[i] = new Variable();
|
args[i] = new Variable();
|
||||||
|
#pragma warning disable 0219
|
||||||
foreach (bool l1 in YP.unify(Term, Functor.make((Atom)FunctorName, args)))
|
foreach (bool l1 in YP.unify(Term, Functor.make((Atom)FunctorName, args)))
|
||||||
yield return false;
|
yield return false;
|
||||||
|
#pragma warning restore 0219
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2399,11 +2401,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||||
if (_Head == null || _Body == null)
|
if (_Head == null || _Body == null)
|
||||||
yield break;
|
yield break;
|
||||||
|
|
||||||
|
#pragma warning disable 0168
|
||||||
foreach (bool l1 in YP.unify(Head, _Head))
|
foreach (bool l1 in YP.unify(Head, _Head))
|
||||||
{
|
{
|
||||||
foreach (bool l2 in YP.unify(Body, _Body))
|
foreach (bool l2 in YP.unify(Body, _Body))
|
||||||
yield return false;
|
yield return false;
|
||||||
}
|
}
|
||||||
|
#pragma warning disable 0168
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue