76 references to CheckOverflowAtRuntime
Microsoft.CodeAnalysis.CSharp (76)
Binder\Binder_Conversions.cs (6)
26
var conversion = Conversions.ClassifyConversionFromExpression(source, destination, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
166
CheckOverflowAtRuntime
,
181
CheckOverflowAtRuntime
,
202
@checked:
CheckOverflowAtRuntime
,
246
@checked:
CheckOverflowAtRuntime
,
292
@checked:
CheckOverflowAtRuntime
,
Binder\Binder_Deconstruct.cs (1)
323
nestedConversion = this.Conversions.ClassifyConversionFromType(tupleOrDeconstructedTypes[i], single.Type, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
Binder\Binder_Expressions.cs (12)
1222
Conversion conversion = this.Conversions.ClassifyConversionFromExpression(argument, typedReferenceType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
1271
Conversion conversion = this.Conversions.ClassifyConversionFromExpression(argument, typedReferenceType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
2705
Conversion conversion = this.Conversions.ClassifyConversionFromExpression(operand, targetType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo, forCast: true);
2863
var elementConversion = Conversions.ClassifyConversionFromExpression(argument, targetElementType, isChecked:
CheckOverflowAtRuntime
, ref discardedUseSiteInfo);
2889
var underlyingConversion = Conversions.ClassifyBuiltInConversion(operand.Type, underlyingTargetTypeWithAnnotations.Type, isChecked:
CheckOverflowAtRuntime
, ref discardedUseSiteInfo);
3899
@checked:
CheckOverflowAtRuntime
,
5249
var conversion = @this.Conversions.ClassifyConversionFromExpression(expression, collectionType, isChecked: @this.
CheckOverflowAtRuntime
, ref useSiteInfo);
5341
var conversion = this.Conversions.ClassifyConversionFromExpression(unboundLambda, type, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
6952
Conversion conversion = this.Conversions.ClassifyConversionFromExpression(classCreation, interfaceType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo, forCast: true);
9447
Conversion failedConversion = this.Conversions.ClassifyConversionFromExpression(index, int32, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
9550
CheckOverflowAtRuntime
, refersToLocation: false, pointedAtType, hasErrors: true);
9562
return new BoundPointerElementAccess(node, expr, index,
CheckOverflowAtRuntime
, refersToLocation: false, pointedAtType, hasErrors);
Binder\Binder_Invocation.cs (2)
1680
Conversion conversion = Conversions.ClassifyConversionFromExpression(defaultValue, parameterType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
1763
@checked:
CheckOverflowAtRuntime
,
Binder\Binder_Operators.cs (30)
64
var finalDynamicConversion = this.Compilation.Conversions.ClassifyConversionFromExpression(placeholder, left.Type, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
74
kind.WithType(BinaryOperatorKind.Dynamic).WithOverflowChecksIfApplicable(
CheckOverflowAtRuntime
),
123
BinaryOperatorAnalysisResult best = this.BinaryOperatorOverloadResolution(kind, isChecked:
CheckOverflowAtRuntime
, left, right, node, diagnostics, out resultKind, out originalUserDefinedOperators);
182
if (
CheckOverflowAtRuntime
)
185
bestSignature.Kind.WithOverflowChecksIfApplicable(
CheckOverflowAtRuntime
),
223
Conversion rightToLeftConversion = this.Conversions.ClassifyConversionFromExpression(right, leftType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
270
Conversion argumentConversion = this.Conversions.ClassifyConversionFromExpression(right, delegateType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
412
operatorKind: (hasError ? kind : kind.WithType(BinaryOperatorKind.Dynamic)).WithOverflowChecksIfApplicable(
CheckOverflowAtRuntime
),
686
resultOperatorKind.WithOverflowChecksIfApplicable(
CheckOverflowAtRuntime
),
703
best = this.BinaryOperatorOverloadResolution(kind, isChecked:
CheckOverflowAtRuntime
, left, right, node, diagnostics, out resultKind, out originalUserDefinedOperators);
820
var conversion = this.Conversions.ClassifyConversionFromExpression(right, left.Type, isChecked:
CheckOverflowAtRuntime
, ref discardedUseSiteInfo);
965
var best = this.BinaryOperatorOverloadResolution(kind, isChecked:
CheckOverflowAtRuntime
, left, right, node, diagnostics, out lookupResult, out originalUserDefinedOperators);
1276
var conversion = this.Conversions.ClassifyConversionFromType(argumentType, op.GetParameterType(0), isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
1418
this.OverloadResolution.UnaryOperatorOverloadResolution(kind, isChecked:
CheckOverflowAtRuntime
, operand, result, ref useSiteInfo);
2294
kind.WithType(UnaryOperatorKind.Dynamic).WithOverflowChecksIfApplicable(
CheckOverflowAtRuntime
),
2362
signature.Kind.WithOverflowChecksIfApplicable(
CheckOverflowAtRuntime
),
2758
operatorKind: kind.WithType(UnaryOperatorKind.Dynamic).WithOverflowChecksIfApplicable(
CheckOverflowAtRuntime
),
2798
resultOperatorKind.WithOverflowChecksIfApplicable(
CheckOverflowAtRuntime
),
3306
Conversion conv = Conversions.ClassifyConversionFromExpression(operand, targetType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
3328
Conversion conversion = Conversions.ClassifyBuiltInConversion(operandType, targetType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
3824
Conversion conversion = Conversions.ClassifyBuiltInConversion(operandType, targetType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
3977
leftPlaceholder: null, leftConversion: null, BoundNullCoalescingOperatorResultKind.NoCommonType, @checked:
CheckOverflowAtRuntime
, CreateErrorType(), hasErrors: true);
3992
leftPlaceholder: null, leftConversion: null, BoundNullCoalescingOperatorResultKind.NoCommonType, @checked:
CheckOverflowAtRuntime
, CreateErrorType(), hasErrors: true);
4001
leftPlaceholder: null, leftConversion: null, BoundNullCoalescingOperatorResultKind.NoCommonType, @checked:
CheckOverflowAtRuntime
, CreateErrorType(), hasErrors: true);
4051
Conversions.ClassifyConversionFromExpression(leftOperand, objectType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo),
4057
leftPlaceholder, leftConversion, BoundNullCoalescingOperatorResultKind.RightDynamicType, @checked:
CheckOverflowAtRuntime
, optRightType);
4075
leftPlaceholder, leftConversion: leftPlaceholder, BoundNullCoalescingOperatorResultKind.LeftUnwrappedType, @checked:
CheckOverflowAtRuntime
, optLeftType0);
4092
leftPlaceholder, leftConversion: leftPlaceholder, BoundNullCoalescingOperatorResultKind.LeftType, @checked:
CheckOverflowAtRuntime
, optLeftType);
4143
return new BoundNullCoalescingOperator(node, leftOperand, rightOperand, leftPlaceholder, leftConversion, resultKind, @checked:
CheckOverflowAtRuntime
, optRightType);
4157
return new BoundNullCoalescingOperator(node, leftOperand, rightOperand, leftPlaceholder, leftConversion, resultKind, @checked:
CheckOverflowAtRuntime
, optRightType);
Binder\Binder_Patterns.cs (2)
631
patternExpressionConversion = this.Conversions.ClassifyConversionFromExpression(expression, inputType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
1287
var result = Compilation.Conversions.ClassifyBuiltInConversion(type, possibleBaseInterface, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo).IsImplicit;
Binder\Binder_Statements.cs (12)
1367
Conversion elementConversionClassification = this.Conversions.ClassifyConversionFromType(pointerType, declType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
1944
this.Conversions.ClassifyConversionFromExpression(expression, targetType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo) :
1945
this.Conversions.ClassifyConversionFromType(expression.Type, targetType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
2672
var conversion = this.Conversions.ClassifyConversionFromExpression(expr, boolean, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
3046
return new BoundReturnStatement(syntax, refKind, BindToTypeForErrorRecovery(arg), @checked:
CheckOverflowAtRuntime
, hasErrors: true);
3150
conversion = this.Conversions.ClassifyConversionFromExpression(argument, returnType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
3155
conversion = this.Conversions.ClassifyConversionFromExpression(argument, returnType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
3458
statement = new BoundReturnStatement(syntax, refKind, expression, @checked:
CheckOverflowAtRuntime
) { WasCompilerGenerated = true };
3469
statement = new BoundReturnStatement(syntax, RefKind.None, expression, @checked:
CheckOverflowAtRuntime
) { WasCompilerGenerated = true };
3500
statement = new BoundReturnStatement(syntax, returnRefKind, expression, @checked:
CheckOverflowAtRuntime
) { WasCompilerGenerated = true };
3512
statement = new BoundReturnStatement(syntax, returnRefKind, expression, @checked:
CheckOverflowAtRuntime
) { WasCompilerGenerated = true };
3528
statement = new BoundReturnStatement(syntax, refKind, expression, @checked:
CheckOverflowAtRuntime
) { WasCompilerGenerated = true };
Binder\ForEachLoopBinder.cs (6)
469
Conversion elementConversionClassification = this.Conversions.ClassifyConversionFromType(inferredType.Type, iterationVariableType.Type, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo, forCast: true);
523
Conversion collectionConversionClassification = this.Conversions.ClassifyConversionFromExpression(collectionExpr, builder.CollectionType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
524
Conversion currentConversionClassification = this.Conversions.ClassifyConversionFromType(builder.CurrentPropertyGetter.ReturnType, builder.ElementType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
649
@checked:
CheckOverflowAtRuntime
,
1529
var collectionConversion = this.Conversions.ClassifyConversionFromExpression(collectionExpr, result.Parameters[0].Type, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
1538
@checked:
CheckOverflowAtRuntime
,
Binder\SwitchBinder.cs (1)
257
Conversion conversion = Conversions.ClassifyConversionFromExpression(caseExpression, SwitchGoverningType, isChecked:
CheckOverflowAtRuntime
, ref useSiteInfo);
Compilation\CSharpSemanticModel.cs (2)
2860
return binder.Conversions.ClassifyConversionFromExpression(bnode, cdestination, isChecked: binder.
CheckOverflowAtRuntime
, ref discardedUseSiteInfo);
2912
return binder.Conversions.ClassifyConversionFromExpression(bnode, destination, isChecked: binder.
CheckOverflowAtRuntime
, ref discardedUseSiteInfo, forCast: true);
Compilation\MemberSemanticModel.cs (2)
483
return binder.Conversions.ClassifyConversionFromExpression(boundExpression, csdestination, isChecked: binder.
CheckOverflowAtRuntime
, ref discardedUseSiteInfo);
507
return binder.Conversions.ClassifyConversionFromExpression(boundExpression, destination, isChecked: binder.
CheckOverflowAtRuntime
, ref discardedUseSiteInfo, forCast: true);