3 writes to ExprType
Microsoft.ML.Transforms (3)
Expression\Node.cs (3)
328ExprType = kind; 339ExprType = kind; 513ExprType = kind;
66 references to ExprType
Microsoft.ML.Transforms (66)
Expression\CodeGen.cs (14)
184switch (node.ExprType) 232switch (node.ExprType) 297switch (node.ExprType) 417Contracts.Assert(node.Arg.ExprType == node.SrcKind); 799Contracts.Assert(arg.ExprType == kind); 801Contracts.Assert(arg.ExprType == kind); 870Contracts.Assert(arg.ExprType == kind); 873Contracts.Assert(arg.ExprType == kind); 882Contracts.Assert(arg.ExprType == kind); 915Contracts.Assert(arg.ExprType == kind); 924Contracts.Assert(arg.ExprType == kind); 969switch (node.ExprType) 1021GenBrNaCore(node, node.ExprType, labNa, dup); 1368using (var value = _meth.AcquireTemporary(ExprNode.ToSysType(local.Value.ExprType)))
Expression\LambdaBinder.cs (20)
64switch (expr.ExprType) 263switch (arg.ExprType) 320BadArg(node, node.Left.ExprType); 409if (!CanPromote(false, a.ExprType, b.ExprType, out kind)) 413kind = a.ExprType; 415kind = b.ExprType; 826if (!CanPromote(false, left.ExprType, right.ExprType, out kind)) 831kind = left.ExprType; 833kind = right.ExprType; 835kind = left.ExprType; 837kind = right.ExprType; 1068_host.Assert(arg.ExprType == kind); 1080_host.Assert(arg.ExprType == kind); 1101_host.Assert(arg.ExprType == kind); 1108_host.Assert(arg2.ExprType == kind); 1300var kinds = node.Args.Items.Select(item => item.AsExpr.ExprType).ToArray(); 1647_host.Assert(expr.ExprType != 0); 1649ExprTypeKind kind = expr.ExprType;
Expression\Node.cs (30)
279Contracts.Assert(ExprType != 0); 280return ExprType == kind; 283public bool HasType { get { return ExprTypeKind.Error < ExprType && ExprType < ExprTypeKind._Lim; } } 284public bool IsNone { get { return ExprType == ExprTypeKind.None; } } 285public bool IsError { get { return ExprType == ExprTypeKind.Error; } } 311if (SrcKind != ExprType) 314bool tmp = LambdaBinder.CanPromote(false, SrcKind, ExprType, out kind); 315Contracts.Assert(tmp && kind == ExprType); 318return SrcKind != ExprType; 326Contracts.Assert(ExprType == 0 || ExprType == kind); 327Contracts.Assert(SrcKind == ExprType); 337Contracts.Assert(ExprType == 0 || ExprType == kind); 338Contracts.Assert(SrcKind == ExprType); 385Contracts.Assert(expr.ExprType != 0); 386SetType(expr.ExprType); 466if (kind == ExprType) 469Contracts.Assert(SrcKind == ExprType); 473Contracts.Assert(ExprType == ExprTypeKind.I4); 481Contracts.Assert(ExprType == ExprTypeKind.I4); 489Contracts.Assert(ExprType == ExprTypeKind.I4 || ExprType == ExprTypeKind.I8 || 490ExprType == ExprTypeKind.R4); 493if (ExprType == ExprTypeKind.I4) 498else if (ExprType == ExprTypeKind.I8) 540switch (ExprType) 556switch (ExprType) 572switch (ExprType)
Expression\Printer.cs (2)
218switch (node.ExprType) 307_wrt.Write(node.ExprType.ToString());