125 references to Utils
System.Linq.Expressions (125)
System\Dynamic\BindingRestrictions.cs (4)
10using AstUtils = System.Linq.Expressions.Utils; 23public static readonly BindingRestrictions Empty = new CustomRestriction(AstUtils.Constant(true)); 304AstUtils.Null 328Expression.NotEqual(temp, AstUtils.Null),
System\Dynamic\DynamicObject.cs (7)
13using AstUtils = System.Linq.Expressions.Utils; 476AstUtils.Constant(i) 488return AstUtils.Empty; 602Expression.Equal(resultMO.Expression, AstUtils.Null), 619Expression.Equal(resultMO.Expression, AstUtils.Null), 662method != DynamicObject_TryBinaryOperation ? ReferenceArgAssign(callArgs, args) : AstUtils.Empty, 786AstUtils.Empty
System\Dynamic\ExpandoObject.cs (7)
13using AstUtils = System.Linq.Expressions.Utils; 796AstUtils.Constant(index), 798AstUtils.Constant(ignoreCase), 869AstUtils.Constant(index), 872AstUtils.Constant(binder.IgnoreCase) 889AstUtils.Constant(index), 891AstUtils.Constant(binder.IgnoreCase)
System\Linq\Expressions\Compiler\LambdaCompiler.cs (1)
291return Utils.GetStrongBoxValueField(Expression.Constant(new StrongBox<T>()));
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (6)
677initializers.Add(Expression.ElementInit(add, new TrueReadOnlyCollection<Expression>(t, Utils.Constant(i)))); 684cases.UncheckedAdd(Expression.SwitchCase(node.Cases[i].Body, new TrueReadOnlyCollection<Expression>(Utils.Constant(i)))); 701Utils.Constant(initializers.Count) 737Expression.Assign(switchIndex, Utils.Constant(nullCase)), 740Utils.Empty, 741Expression.Assign(switchIndex, Utils.Constant(-1))
System\Linq\Expressions\Compiler\StackSpiller.Bindings.cs (3)
122block[count + 1] = Utils.Empty; 208block[count + 1] = Utils.Empty; 243Utils.Empty
System\Linq\Expressions\ConditionalExpression.cs (2)
6using AstUtils = System.Linq.Expressions.Utils; 69return AstUtils.Empty;
System\Linq\Expressions\Interpreter\AndInstruction.cs (2)
160frame.Push((bool)right ? null : Utils.BoxedFalse); 166frame.Push((bool)left ? null : Utils.BoxedFalse);
System\Linq\Expressions\Interpreter\GreaterThanInstruction.cs (11)
302TypeCode.SByte => s_SByte ??= new GreaterThanSByte(Utils.BoxedFalse), 303TypeCode.Int16 => s_Int16 ??= new GreaterThanInt16(Utils.BoxedFalse), 304TypeCode.Char => s_Char ??= new GreaterThanChar(Utils.BoxedFalse), 305TypeCode.Int32 => s_Int32 ??= new GreaterThanInt32(Utils.BoxedFalse), 306TypeCode.Int64 => s_Int64 ??= new GreaterThanInt64(Utils.BoxedFalse), 307TypeCode.Byte => s_Byte ??= new GreaterThanByte(Utils.BoxedFalse), 308TypeCode.UInt16 => s_UInt16 ??= new GreaterThanUInt16(Utils.BoxedFalse), 309TypeCode.UInt32 => s_UInt32 ??= new GreaterThanUInt32(Utils.BoxedFalse), 310TypeCode.UInt64 => s_UInt64 ??= new GreaterThanUInt64(Utils.BoxedFalse), 311TypeCode.Single => s_Single ??= new GreaterThanSingle(Utils.BoxedFalse), 312TypeCode.Double => s_Double ??= new GreaterThanDouble(Utils.BoxedFalse),
System\Linq\Expressions\Interpreter\GreaterThanOrEqualInstruction.cs (11)
302TypeCode.SByte => s_SByte ??= new GreaterThanOrEqualSByte(Utils.BoxedFalse), 303TypeCode.Int16 => s_Int16 ??= new GreaterThanOrEqualInt16(Utils.BoxedFalse), 304TypeCode.Char => s_Char ??= new GreaterThanOrEqualChar(Utils.BoxedFalse), 305TypeCode.Int32 => s_Int32 ??= new GreaterThanOrEqualInt32(Utils.BoxedFalse), 306TypeCode.Int64 => s_Int64 ??= new GreaterThanOrEqualInt64(Utils.BoxedFalse), 307TypeCode.Byte => s_Byte ??= new GreaterThanOrEqualByte(Utils.BoxedFalse), 308TypeCode.UInt16 => s_UInt16 ??= new GreaterThanOrEqualUInt16(Utils.BoxedFalse), 309TypeCode.UInt32 => s_UInt32 ??= new GreaterThanOrEqualUInt32(Utils.BoxedFalse), 310TypeCode.UInt64 => s_UInt64 ??= new GreaterThanOrEqualUInt64(Utils.BoxedFalse), 311TypeCode.Single => s_Single ??= new GreaterThanOrEqualSingle(Utils.BoxedFalse), 312TypeCode.Double => s_Double ??= new GreaterThanOrEqualDouble(Utils.BoxedFalse),
System\Linq\Expressions\Interpreter\InstructionList.cs (2)
336Emit(s_true ??= new LoadObjectInstruction(Utils.BoxedTrue)); 340Emit(s_false ??= new LoadObjectInstruction(Utils.BoxedFalse));
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (2)
71Data[StackIndex++] = value ? Utils.BoxedTrue : Utils.BoxedFalse;
System\Linq\Expressions\Interpreter\LessThanInstruction.cs (11)
301TypeCode.SByte => s_SByte ??= new LessThanSByte(Utils.BoxedFalse), 302TypeCode.Int16 => s_Int16 ??= new LessThanInt16(Utils.BoxedFalse), 303TypeCode.Char => s_Char ??= new LessThanChar(Utils.BoxedFalse), 304TypeCode.Int32 => s_Int32 ??= new LessThanInt32(Utils.BoxedFalse), 305TypeCode.Int64 => s_Int64 ??= new LessThanInt64(Utils.BoxedFalse), 306TypeCode.Byte => s_Byte ??= new LessThanByte(Utils.BoxedFalse), 307TypeCode.UInt16 => s_UInt16 ??= new LessThanUInt16(Utils.BoxedFalse), 308TypeCode.UInt32 => s_UInt32 ??= new LessThanUInt32(Utils.BoxedFalse), 309TypeCode.UInt64 => s_UInt64 ??= new LessThanUInt64(Utils.BoxedFalse), 310TypeCode.Single => s_Single ??= new LessThanSingle(Utils.BoxedFalse), 311TypeCode.Double => s_Double ??= new LessThanDouble(Utils.BoxedFalse),
System\Linq\Expressions\Interpreter\LessThanOrEqualInstruction.cs (11)
302TypeCode.SByte => s_SByte ??= new LessThanOrEqualSByte(Utils.BoxedFalse), 303TypeCode.Int16 => s_Int16 ??= new LessThanOrEqualInt16(Utils.BoxedFalse), 304TypeCode.Char => s_Char ??= new LessThanOrEqualChar(Utils.BoxedFalse), 305TypeCode.Int32 => s_Int32 ??= new LessThanOrEqualInt32(Utils.BoxedFalse), 306TypeCode.Int64 => s_Int64 ??= new LessThanOrEqualInt64(Utils.BoxedFalse), 307TypeCode.Byte => s_Byte ??= new LessThanOrEqualByte(Utils.BoxedFalse), 308TypeCode.UInt16 => s_UInt16 ??= new LessThanOrEqualUInt16(Utils.BoxedFalse), 309TypeCode.UInt32 => s_UInt32 ??= new LessThanOrEqualUInt32(Utils.BoxedFalse), 310TypeCode.UInt64 => s_UInt64 ??= new LessThanOrEqualUInt64(Utils.BoxedFalse), 311TypeCode.Single => s_Single ??= new LessThanOrEqualSingle(Utils.BoxedFalse), 312TypeCode.Double => s_Double ??= new LessThanOrEqualDouble(Utils.BoxedFalse),
System\Linq\Expressions\Interpreter\LightCompiler.cs (11)
15using AstUtils = System.Linq.Expressions.Utils; 827node.NodeType == ExpressionType.Equal ? AstUtils.BoxedFalse : AstUtils.BoxedTrue, 872_instructions.EmitLoad(AstUtils.BoxedFalse, typeof(object)); 1429_instructions.EmitLoad(andAlso ? AstUtils.BoxedTrue : AstUtils.BoxedFalse, typeof(object)); 1435_instructions.EmitLoad(andAlso ? AstUtils.BoxedFalse : AstUtils.BoxedTrue, typeof(object)); 1478if (node.IfTrue == AstUtils.Empty) 1491if (node.IfFalse != AstUtils.Empty) 1616AstUtils.Empty
System\Linq\Expressions\Interpreter\LightLambda.cs (1)
11using AstUtils = System.Linq.Expressions.Utils;
System\Linq\Expressions\Interpreter\OrInstruction.cs (2)
160frame.Push((bool)right ? Utils.BoxedTrue : null); 167frame.Push((bool)left ? Utils.BoxedTrue : null);
System\Linq\Expressions\Interpreter\TypeOperations.cs (2)
199frame.Push(Utils.BoxedFalse); 630return Expression.Convert(Utils.GetStrongBoxValueField(Expression.Constant(box)), node.Type);
System\Linq\Expressions\Interpreter\Utilities.cs (19)
88-1 => Utils.BoxedIntM1, 890 => Utils.BoxedInt0, 901 => Utils.BoxedInt1, 912 => Utils.BoxedInt2, 923 => Utils.BoxedInt3, 104result = Utils.BoxedFalse; 107result = Utils.BoxedDefaultSByte; 110result = Utils.BoxedDefaultByte; 113result = Utils.BoxedDefaultChar; 116result = Utils.BoxedDefaultInt16; 119result = Utils.BoxedInt0; 122result = Utils.BoxedDefaultInt64; 125result = Utils.BoxedDefaultUInt16; 128result = Utils.BoxedDefaultUInt32; 131result = Utils.BoxedDefaultUInt64; 134return Utils.BoxedDefaultSingle; 136return Utils.BoxedDefaultDouble; 138return Utils.BoxedDefaultDateTime; 140return Utils.BoxedDefaultDecimal;
System\Linq\Expressions\MemberInitExpression.cs (2)
81block[count + 1] = keepOnStack ? (Expression)objVar : Utils.Empty; 98block[count + 1] = keepOnStack ? (Expression)listVar : Utils.Empty;
System\Linq\Expressions\TypeBinaryExpression.cs (5)
62return Expression.Block(Expression, Utils.Constant(value: false)); 73return Expression.Block(Expression, Utils.Constant(cType == TypeOperand.GetNonNullableType())); 130Expression.ReferenceNotEqual(value, Utils.Null), 144return Utils.Constant(value: false); 148return Utils.Constant(TypeOperand.GetNonNullableType() == ce.Value.GetType());
System\Runtime\CompilerServices\CallSite.cs (2)
479Expression.Assign(index, Utils.Constant(0)), 575body.UncheckedAdd(Expression.Assign(index, Utils.Constant(0)));
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (1)
180return Utils.GetStrongBoxValueField(Expression.Constant(box));