зеркало из https://github.com/microsoft/Power-Fx.git
Add view/nv to Bin Op Matrix (#494)
This commit is contained in:
Родитель
91e16efc59
Коммит
e7287a255d
|
@ -259,6 +259,28 @@ namespace Microsoft.PowerFx.Core.IR
|
|||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
case DKind.ViewValue:
|
||||
switch (node.Op)
|
||||
{
|
||||
case BinaryOp.NotEqual:
|
||||
return BinaryOpKind.NeqViewValue;
|
||||
case BinaryOp.Equal:
|
||||
return BinaryOpKind.EqViewValue;
|
||||
default:
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
case DKind.NamedValue:
|
||||
switch (node.Op)
|
||||
{
|
||||
case BinaryOp.NotEqual:
|
||||
return BinaryOpKind.NeqNamedValue;
|
||||
case BinaryOp.Equal:
|
||||
return BinaryOpKind.EqNamedValue;
|
||||
default:
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
default:
|
||||
throw new NotSupportedException("Not supported comparison op on type " + kindToUse.ToString());
|
||||
}
|
||||
|
|
|
@ -40,6 +40,8 @@ namespace Microsoft.PowerFx.Core.IR.Nodes
|
|||
EqBlob,
|
||||
EqGuid,
|
||||
EqOptionSetValue,
|
||||
EqViewValue,
|
||||
EqNamedValue,
|
||||
EqNull,
|
||||
|
||||
NeqNumbers,
|
||||
|
@ -56,6 +58,8 @@ namespace Microsoft.PowerFx.Core.IR.Nodes
|
|||
NeqBlob,
|
||||
NeqGuid,
|
||||
NeqOptionSetValue,
|
||||
NeqViewValue,
|
||||
NeqNamedValue,
|
||||
NeqNull,
|
||||
|
||||
LtNumbers,
|
||||
|
|
Загрузка…
Ссылка в новой задаче