24 references to IsCheckedOperator
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Conversions.cs (1)
430
if (SyntaxFacts.
IsCheckedOperator
(method.Name) &&
Binder\Binder_Crefs.cs (1)
239
(isChecked && !syntax.OperatorToken.IsMissing && !SyntaxFacts.
IsCheckedOperator
(memberName))) // the operator cannot be checked
Binder\Binder_Operators.cs (1)
2424
if (SyntaxFacts.
IsCheckedOperator
(methodOpt.Name))
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
929
if (isChecked && SyntaxFacts.
IsCheckedOperator
(name1))
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
485
if (isChecked && SyntaxFacts.
IsCheckedOperator
(name1))
Compilation\CSharpCompilation.cs (2)
4223
var binaryOperatorName = OperatorFacts.BinaryOperatorNameFromSyntaxKindIfAny(syntaxKind, SyntaxFacts.
IsCheckedOperator
(name));
4449
var unaryOperatorName = OperatorFacts.UnaryOperatorNameFromSyntaxKindIfAny(syntaxKind, SyntaxFacts.
IsCheckedOperator
(name));
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
483
return isChecked || (methodOpt is { Name: string name } && SyntaxFacts.
IsCheckedOperator
(name));
711
var e2 = _bound.StaticCall(node.Checked && SyntaxFacts.
IsCheckedOperator
(method.Name) ?
1152
opFactory = isChecked || (node.MethodOpt is { Name: string name } && SyntaxFacts.
IsCheckedOperator
(name)) ?
Operations\CSharpOperationFactory.cs (5)
1130
bool isChecked = boundConversion.Checked && (conversion.IsNumeric || (boundConversion.SymbolOpt is not null && SyntaxFacts.
IsCheckedOperator
(boundConversion.SymbolOpt.Name)));
1364
bool isChecked = boundCompoundAssignmentOperator.Operator.Kind.IsChecked() || (method is not null && SyntaxFacts.
IsCheckedOperator
(method.Name));
1390
bool isChecked = boundIncrementOperator.OperatorKind.IsChecked() || (boundIncrementOperator.MethodOpt is not null && SyntaxFacts.
IsCheckedOperator
(boundIncrementOperator.MethodOpt.Name));
1440
bool isChecked = boundUnaryOperator.OperatorKind.IsChecked() || (boundUnaryOperator.MethodOpt is not null && SyntaxFacts.
IsCheckedOperator
(boundUnaryOperator.MethodOpt.Name));
1526
bool isChecked = boundBinaryOperator.OperatorKind.IsChecked() || (boundBinaryOperator.Method is not null && SyntaxFacts.
IsCheckedOperator
(boundBinaryOperator.Method.Name));
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
704
if (SyntaxFacts.
IsCheckedOperator
(operatorName))
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
28
if (SyntaxFacts.
IsCheckedOperator
(name))
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
56
public override bool IsCheckedBuiltin => SyntaxFacts.
IsCheckedOperator
(this.Name);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (1)
60
var checkedKeyword = SyntaxFacts.
IsCheckedOperator
(method.MetadataName)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
88
var checkedToken = SyntaxFacts.
IsCheckedOperator
(method.MetadataName)
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.CompletionSymbolDisplay.cs (1)
80
if (SyntaxFacts.
IsCheckedOperator
(symbol.MetadataName))
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
298
checkedKeyword: CSharp.SyntaxFacts.
IsCheckedOperator
(operatorName) ? CheckedKeyword : default,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (1)
60
var checkedKeyword = SyntaxFacts.
IsCheckedOperator
(method.MetadataName)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
88
var checkedToken = SyntaxFacts.
IsCheckedOperator
(method.MetadataName)