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