1 write to Checked
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
2962
this.
Checked
= @checked;
34 references to Checked
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_Operators.cs (1)
68
conversion = conversion.Update(conversion.Operand, conversion.Conversion, conversion.IsBaseConversion, conversion.
Checked
,
BoundTree\BoundExpression.cs (2)
480
return this.Update(operand: operand, this.Conversion, this.IsBaseConversion, this.
Checked
, this.ExplicitCastInCode, this.ConstantValueOpt, this.ConversionGroupOpt, this.OriginalUserDefinedConversionsOpt, this.Type);
507
return this.
Checked
;
CodeGen\EmitConversion.cs (3)
165
_builder.EmitNumericConversion(fromPredefTypeKind, toPredefTypeKind, conversion.
Checked
);
222
_builder.EmitNumericConversion(fromPredefTypeKind, toPredefTypeKind, conversion.
Checked
);
308
_builder.EmitNumericConversion(fromPredefTypeKind, toPredefTypeKind, conversion.
Checked
);
Compilation\CSharpSemanticModel.cs (1)
2210
conversion = binder.Conversions.ClassifyConversionFromExpression(boundExpr, convertedType, isChecked: ((BoundConversion)highestBoundExpr).
Checked
, ref discardedUseSiteInfo);
FlowAnalysis\NullableWalker.cs (6)
7429
conversion = GenerateConversion(_conversions, argumentNoConversion, argumentResultType, parameterType.Type, fromExplicitCast: false, extensionMethodThisArgument: false, isChecked: conversionOpt?.
Checked
?? false);
9040
conversion = GenerateConversion(_conversions, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.
Checked
?? false);
9066
conversion = GenerateConversion(_conversions, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.
Checked
?? false);
9118
conversion = GenerateConversion(_conversions, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.
Checked
?? false);
9136
conversion = GenerateConversion(_conversions, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.
Checked
?? false);
9146
conversion = GenerateConversion(_conversions, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.
Checked
?? false);
Generated\BoundNodes.xml.Generated.cs (5)
2984
if (operand != this.Operand || conversion != this.Conversion || isBaseConversion != this.IsBaseConversion || @checked != this.
Checked
|| explicitCastInCode != this.ExplicitCastInCode || constantValueOpt != this.ConstantValueOpt || conversionGroupOpt != this.ConversionGroupOpt || originalUserDefinedConversionsOpt != this.OriginalUserDefinedConversionsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11279
return node.Update(operand, node.Conversion, node.IsBaseConversion, node.
Checked
, node.ExplicitCastInCode, node.ConstantValueOpt, node.ConversionGroupOpt, node.OriginalUserDefinedConversionsOpt, type);
13310
updatedNode = node.Update(operand, node.Conversion, node.IsBaseConversion, node.
Checked
, node.ExplicitCastInCode, node.ConstantValueOpt, node.ConversionGroupOpt, node.OriginalUserDefinedConversionsOpt, infoAndType.Type!);
13315
updatedNode = node.Update(operand, node.Conversion, node.IsBaseConversion, node.
Checked
, node.ExplicitCastInCode, node.ConstantValueOpt, node.ConversionGroupOpt, node.OriginalUserDefinedConversionsOpt, node.Type);
15665
new TreeDumperNode("@checked", node.
Checked
, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (8)
676
@checked: conversion.
Checked
,
709
? Convert(Visit(node.Operand), node.Operand.Type, method.Parameters[0].Type, node.
Checked
, false)
711
var e2 = _bound.StaticCall(node.
Checked
&& SyntaxFacts.IsCheckedOperator(method.Name) ?
716
return Convert(e2, resultType, node.Type, node.
Checked
, false);
727
return Convert(Visit(node.Operand), node.Operand.Type, node.Type, node.
Checked
, node.ExplicitCastInCode);
734
var e1 = Convert(Visit(node.Operand), node.Operand.Type, intermediate, node.
Checked
, false);
735
return Convert(e1, intermediate, node.Type, node.
Checked
, false);
740
return Convert(Visit(node.Operand), node.Operand.Type, node.Type, node.
Checked
, node.ExplicitCastInCode);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
79
var result = MakeConversionNode(node, node.Syntax, rewrittenOperand, node.Conversion, node.
Checked
, node.ExplicitCastInCode, node.ConstantValueOpt, rewrittenType);
1020
@checked: conversion.
Checked
,
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (4)
74
@checked: conversion.
Checked
,
121
syntax, fieldAccess, elementConversions[i], boundConversion.
Checked
, boundConversion.ExplicitCastInCode, null, null, destElementTypes[i].Type, boundConversion.HasErrors);
475
expr.Syntax, expr, conversion, enclosing.
Checked
, enclosing.ExplicitCastInCode,
611
conversion: conv.Conversion, @checked: conv.
Checked
, explicitCastInCode: conv.ExplicitCastInCode,
Lowering\MethodToClassRewriter.cs (1)
304
node.
Checked
,
Operations\CSharpOperationFactory.cs (1)
1130
bool isChecked = boundConversion.
Checked
&& (conversion.IsNumeric || (boundConversion.SymbolOpt is not null && SyntaxFacts.IsCheckedOperator(boundConversion.SymbolOpt.Name)));