146 references to ContractUtils
System.Linq.Expressions (146)
System\Dynamic\BinaryOperationBinder.cs (2)
22ContractUtils.Requires(OperationIsValid(operation), nameof(operation)); 66ContractUtils.Requires(args.Length == 1, nameof(args));
System\Dynamic\BindingRestrictions.cs (1)
113ContractUtils.Requires(expression.Type == typeof(bool), nameof(expression));
System\Dynamic\CallInfo.cs (1)
56ContractUtils.RequiresNotNullItems(argNameCol, nameof(argNames));
System\Dynamic\ConvertBinder.cs (1)
66ContractUtils.Requires(args == null || args.Length == 0, nameof(args));
System\Dynamic\CreateInstanceBinder.cs (1)
65ContractUtils.RequiresNotNullItems(args, nameof(args));
System\Dynamic\DeleteIndexBinder.cs (1)
45ContractUtils.RequiresNotNullItems(args, nameof(args));
System\Dynamic\DeleteMemberBinder.cs (1)
71ContractUtils.Requires(args == null || args.Length == 0, nameof(args));
System\Dynamic\DynamicObject.cs (1)
464ContractUtils.Requires(variable != null, nameof(args));
System\Dynamic\ExpandoObject.cs (6)
241ContractUtils.AssertLockHeld(LockObject); 266ContractUtils.AssertLockHeld(LockObject); 316ContractUtils.AssertLockHeld(LockObject); 400ContractUtils.RequiresArrayRange(array, arrayIndex, _expandoCount, nameof(arrayIndex), nameof(Count)); 550ContractUtils.RequiresArrayRange(array, arrayIndex, _expandoCount, nameof(arrayIndex), nameof(Count)); 720ContractUtils.RequiresArrayRange(array, arrayIndex, _count, nameof(arrayIndex), nameof(ICollection<KeyValuePair<string, object>>.Count));
System\Dynamic\GetIndexBinder.cs (1)
45ContractUtils.RequiresNotNullItems(args, nameof(args));
System\Dynamic\GetMemberBinder.cs (1)
71ContractUtils.Requires(args == null || args.Length == 0, nameof(args));
System\Dynamic\InvokeBinder.cs (1)
65ContractUtils.RequiresNotNullItems(args, nameof(args));
System\Dynamic\InvokeMemberBinder.cs (1)
61ContractUtils.RequiresNotNullItems(args, nameof(args));
System\Dynamic\SetIndexBinder.cs (2)
46ContractUtils.Requires(args.Length >= 2, nameof(args)); 52ContractUtils.RequiresNotNullItems(indexes, nameof(args));
System\Dynamic\SetMemberBinder.cs (1)
54ContractUtils.Requires(args.Length == 1, nameof(args));
System\Dynamic\UnaryOperationBinder.cs (2)
22ContractUtils.Requires(OperationIsValid(operation), nameof(operation)); 76ContractUtils.Requires(args == null || args.Length == 0, nameof(args));
System\Dynamic\Utils\ExpressionUtils.cs (3)
149throw ContractUtils.Unreachable; 179throw ContractUtils.Unreachable; 193ContractUtils.RequiresNotNull(expression, paramName, idx);
System\Dynamic\Utils\ListArgumentProvider.cs (6)
43throw ContractUtils.Unreachable; 49throw ContractUtils.Unreachable; 66throw ContractUtils.Unreachable; 77throw ContractUtils.Unreachable; 83throw ContractUtils.Unreachable; 118throw ContractUtils.Unreachable;
System\Linq\Expressions\BinaryExpression.cs (1)
154_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\BlockExpression.cs (13)
112throw ContractUtils.Unreachable; 118throw ContractUtils.Unreachable; 126throw ContractUtils.Unreachable; 133throw ContractUtils.Unreachable; 154throw ContractUtils.Unreachable; 713throw ContractUtils.Unreachable; 719throw ContractUtils.Unreachable; 736throw ContractUtils.Unreachable; 747throw ContractUtils.Unreachable; 753throw ContractUtils.Unreachable; 790throw ContractUtils.Unreachable; 797throw ContractUtils.Unreachable; 1075ContractUtils.RequiresNotNull(v, collectionName, i);
System\Linq\Expressions\CatchBlock.cs (1)
138ContractUtils.Requires(variable == null || TypeUtils.AreEquivalent(variable.Type, type), nameof(variable));
System\Linq\Expressions\Compiler\CompilerScope.cs (1)
508throw ContractUtils.Unreachable;
System\Linq\Expressions\Compiler\ILGen.cs (3)
665_ => throw ContractUtils.Unreachable, 781throw ContractUtils.Unreachable; 1120throw ContractUtils.Unreachable;
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
759throw ContractUtils.Unreachable;
System\Linq\Expressions\Compiler\StackSpiller.Bindings.cs (3)
92throw ContractUtils.Unreachable; 177throw ContractUtils.Unreachable; 232_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (1)
446ContractUtils.RequiresArrayRange(_expressions, first, count, nameof(first), nameof(last));
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
696throw ContractUtils.Unreachable; 766throw ContractUtils.Unreachable;
System\Linq\Expressions\Compiler\StackSpiller.SpilledExpressionBlock.cs (1)
58throw ContractUtils.Unreachable;
System\Linq\Expressions\Compiler\VariableBinder.cs (1)
279throw ContractUtils.Unreachable;
System\Linq\Expressions\DebugInfoExpression.cs (5)
42get { throw ContractUtils.Unreachable; } 51get { throw ContractUtils.Unreachable; } 60get { throw ContractUtils.Unreachable; } 69get { throw ContractUtils.Unreachable; } 83get { throw ContractUtils.Unreachable; }
System\Linq\Expressions\DebugViewWriter.cs (1)
282_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\DynamicExpression.cs (6)
143throw ContractUtils.Unreachable; 169throw ContractUtils.Unreachable; 206throw ContractUtils.Unreachable; 214throw ContractUtils.Unreachable; 220get { throw ContractUtils.Unreachable; } 1235ContractUtils.RequiresNotEmpty(args, nameof(arguments));
System\Linq\Expressions\Interpreter\AddInstruction.cs (1)
176_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\AndInstruction.cs (1)
186_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\CallInstruction.cs (5)
231throw ContractUtils.Unreachable; 311throw ContractUtils.Unreachable; 335throw ContractUtils.Unreachable; 408throw ContractUtils.Unreachable; 432throw ContractUtils.Unreachable;
System\Linq\Expressions\Interpreter\DecrementInstruction.cs (1)
168_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\DivInstruction.cs (1)
176_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\ExclusiveOrInstruction.cs (1)
174_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\GreaterThanInstruction.cs (2)
295_ => throw ContractUtils.Unreachable, 313_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\GreaterThanOrEqualInstruction.cs (2)
295_ => throw ContractUtils.Unreachable, 313_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\IncrementInstruction.cs (1)
168_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\LeftShiftInstruction.cs (1)
173_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\LessThanInstruction.cs (2)
294_ => throw ContractUtils.Unreachable, 312_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\LessThanOrEqualInstruction.cs (2)
295_ => throw ContractUtils.Unreachable, 313_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
1011default: throw ContractUtils.Unreachable; 1030default: throw ContractUtils.Unreachable; 3233throw ContractUtils.Unreachable; 3278throw ContractUtils.Unreachable;
System\Linq\Expressions\Interpreter\LocalAccess.cs (2)
395throw ContractUtils.Unreachable; 436throw ContractUtils.Unreachable;
System\Linq\Expressions\Interpreter\ModuloInstruction.cs (1)
176_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\MulInstruction.cs (1)
177_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\NegateInstruction.cs (1)
114_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\NewInstruction.cs (2)
39throw ContractUtils.Unreachable; 98throw ContractUtils.Unreachable;
System\Linq\Expressions\Interpreter\NotInstruction.cs (1)
183_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\NumericConvertInstruction.cs (11)
79_ => throw ContractUtils.Unreachable, 102_ => throw ContractUtils.Unreachable, 125_ => throw ContractUtils.Unreachable, 148_ => throw ContractUtils.Unreachable, 171_ => throw ContractUtils.Unreachable, 202_ => throw ContractUtils.Unreachable, 225_ => throw ContractUtils.Unreachable, 248_ => throw ContractUtils.Unreachable, 271_ => throw ContractUtils.Unreachable, 294_ => throw ContractUtils.Unreachable, 325_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\OrInstruction.cs (1)
189_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\RightShiftInstruction.cs (1)
174_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\SubInstruction.cs (1)
176_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\Interpreter\TypeOperations.cs (1)
249throw ContractUtils.Unreachable;
System\Linq\Expressions\InvocationExpression.cs (4)
72throw ContractUtils.Unreachable; 83throw ContractUtils.Unreachable; 94throw ContractUtils.Unreachable; 109throw ContractUtils.Unreachable;
System\Linq\Expressions\LambdaExpression.cs (7)
89throw ContractUtils.Unreachable; 98throw ContractUtils.Unreachable; 109throw ContractUtils.Unreachable; 285throw ContractUtils.Unreachable; 291throw ContractUtils.Unreachable; 1127ContractUtils.RequiresNotEmpty(typeArgs, nameof(typeArgs)); 1128ContractUtils.RequiresNotNullItems(typeArgs, nameof(typeArgs));
System\Linq\Expressions\MemberExpression.cs (1)
60throw ContractUtils.Unreachable;
System\Linq\Expressions\MemberInitExpression.cs (1)
110_ => throw ContractUtils.Unreachable,
System\Linq\Expressions\MemberListBinding.cs (1)
130ContractUtils.RequiresNotNull(element, nameof(initializers), i);
System\Linq\Expressions\MethodCallExpression.cs (5)
94throw ContractUtils.Unreachable; 100throw ContractUtils.Unreachable; 122throw ContractUtils.Unreachable; 135throw ContractUtils.Unreachable; 144get { throw ContractUtils.Unreachable; }
System\Linq\Expressions\NewExpression.cs (1)
240ContractUtils.RequiresNotNull(member, nameof(members), i);
System\Linq\Expressions\RuntimeVariablesExpression.cs (1)
96ContractUtils.RequiresNotNull(vars[i], nameof(variables), i);
System\Linq\Expressions\SwitchCase.cs (1)
88ContractUtils.RequiresNotEmpty(values, nameof(testValues));
System\Linq\Expressions\SwitchExpression.cs (1)
183ContractUtils.RequiresNotNullItems(caseList, nameof(cases));
System\Linq\Expressions\TryExpression.cs (1)
158ContractUtils.RequiresNotNullItems(@catch, nameof(handlers));
System\Runtime\CompilerServices\CallSite.cs (1)
337ContractUtils.Requires(pis.Length > 0 && pis[0].ParameterType == typeof(CallSite), nameof(T));
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (1)
213throw ContractUtils.Unreachable;