144 references to BinaryOp
Microsoft.ML.Transforms (144)
Expression\CodeGen.cs (38)
474case BinaryOp.Coalesce: 478case BinaryOp.Or: 479case BinaryOp.And: 483case BinaryOp.Add: 484case BinaryOp.Sub: 485case BinaryOp.Mul: 486case BinaryOp.Div: 487case BinaryOp.Mod: 488case BinaryOp.Power: 492case BinaryOp.Error: 504Contracts.Assert(node.Op == BinaryOp.Or || node.Op == BinaryOp.And); 519if (node.Op == BinaryOp.Or) 551case BinaryOp.Add: 554case BinaryOp.Sub: 557case BinaryOp.Mul: 560case BinaryOp.Div: 563case BinaryOp.Mod: 566case BinaryOp.Power: 582case BinaryOp.Add: 585case BinaryOp.Sub: 588case BinaryOp.Mul: 591case BinaryOp.Div: 594case BinaryOp.Mod: 597case BinaryOp.Power: 613case BinaryOp.Add: 616case BinaryOp.Sub: 619case BinaryOp.Mul: 622case BinaryOp.Div: 625case BinaryOp.Mod: 628case BinaryOp.Power: 645case BinaryOp.Add: 648case BinaryOp.Sub: 651case BinaryOp.Mul: 654case BinaryOp.Div: 657case BinaryOp.Mod: 660case BinaryOp.Power: 695Contracts.Assert(node.Op == BinaryOp.Coalesce);
Expression\LambdaBinder.cs (74)
317case BinaryOp.Coalesce: 327case BinaryOp.Or: 328case BinaryOp.And: 332case BinaryOp.Add: 333case BinaryOp.Sub: 334case BinaryOp.Mul: 335case BinaryOp.Div: 336case BinaryOp.Mod: 337case BinaryOp.Power: 341case BinaryOp.Error: 357_host.Assert(node.Op == BinaryOp.And || node.Op == BinaryOp.Or || node.Op == BinaryOp.Coalesce); 365case BinaryOp.Or: 376case BinaryOp.And: 387case BinaryOp.Coalesce: 518case BinaryOp.Add: 522case BinaryOp.Mul: 534case BinaryOp.Add: 538case BinaryOp.Mul: 556case BinaryOp.Add: 560case BinaryOp.Mul: 572case BinaryOp.Add: 576case BinaryOp.Mul: 594case BinaryOp.Coalesce: 600case BinaryOp.Add: 606case BinaryOp.Mul: 612case BinaryOp.Sub: 613case BinaryOp.Div: 614case BinaryOp.Mod: 626case BinaryOp.Coalesce: 630case BinaryOp.Add: 636case BinaryOp.Mul: 642case BinaryOp.Sub: 643case BinaryOp.Div: 644case BinaryOp.Mod: 662case BinaryOp.Coalesce: 668case BinaryOp.Add: 674case BinaryOp.Mul: 680case BinaryOp.Sub: 681case BinaryOp.Div: 682case BinaryOp.Mod: 694case BinaryOp.Coalesce: 698case BinaryOp.Add: 704case BinaryOp.Mul: 710case BinaryOp.Sub: 711case BinaryOp.Div: 712case BinaryOp.Mod: 728case BinaryOp.Add: 730case BinaryOp.Sub: 732case BinaryOp.Mul: 734case BinaryOp.Div: 736case BinaryOp.Mod: 738case BinaryOp.Power: 750case BinaryOp.Add: 752case BinaryOp.Sub: 754case BinaryOp.Mul: 756case BinaryOp.Div: 758case BinaryOp.Mod: 760case BinaryOp.Power: 772case BinaryOp.Coalesce: 774case BinaryOp.Add: 776case BinaryOp.Sub: 778case BinaryOp.Mul: 780case BinaryOp.Div: 782case BinaryOp.Mod: 784case BinaryOp.Power: 796case BinaryOp.Coalesce: 798case BinaryOp.Add: 800case BinaryOp.Sub: 802case BinaryOp.Mul: 804case BinaryOp.Div: 806case BinaryOp.Mod: 808case BinaryOp.Power:
Expression\LambdaParser.cs (10)
466node = new BinaryOpNode(TokMove(), BinaryOp.Power, node, ParseExpr(Precedence.PrefixUnary)); 472node = new BinaryOpNode(TokMove(), BinaryOp.Mul, node, ParseExpr(Precedence.Mul + 1)); 477node = new BinaryOpNode(TokMove(), BinaryOp.Div, node, ParseExpr(Precedence.Mul + 1)); 482node = new BinaryOpNode(TokMove(), BinaryOp.Mod, node, ParseExpr(Precedence.Mul + 1)); 488node = new BinaryOpNode(TokMove(), BinaryOp.Sub, node, ParseExpr(Precedence.Add + 1)); 493node = new BinaryOpNode(TokMove(), BinaryOp.Add, node, ParseExpr(Precedence.Add + 1)); 500node = new BinaryOpNode(TokMove(), BinaryOp.And, node, ParseExpr(Precedence.And + 1)); 506node = new BinaryOpNode(TokMove(), BinaryOp.Or, node, ParseExpr(Precedence.Or + 1)); 514node = new BinaryOpNode(TokMove(), BinaryOp.Coalesce, node, ParseExpr(Precedence.Coalesce)); 566node = new BinaryOpNode(TokCur, BinaryOp.Error, node, ParseExpr(Precedence.Error));
Expression\Node.cs (2)
887public readonly BinaryOp Op; 892public BinaryOpNode(Token tok, BinaryOp op, ExprNode left, ExprNode right)
Expression\Printer.cs (20)
105private Precedence GetPrec(BinaryOp op) 109case BinaryOp.Or: 111case BinaryOp.And: 113case BinaryOp.Add: 114case BinaryOp.Sub: 116case BinaryOp.Mul: 117case BinaryOp.Div: 118case BinaryOp.Mod: 120case BinaryOp.Power: 122case BinaryOp.Error: 130private string GetString(BinaryOp op) 134case BinaryOp.Or: 136case BinaryOp.And: 138case BinaryOp.Add: 140case BinaryOp.Sub: 142case BinaryOp.Mul: 144case BinaryOp.Div: 146case BinaryOp.Mod: 148case BinaryOp.Power: 150case BinaryOp.Error: