1 write to Operator
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1786
this.
Operator
= @operator;
38 references to Operator
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder.ValueChecks.cs (4)
3610
(compoundAssignmentOperator.
Operator
.Method is not { } compoundMethod ||
3980
(compoundAssignmentOperator.
Operator
.Method is not { } compoundMethod ||
4389
if (compound.
Operator
.Method is { } compoundMethod)
5176
if (compound.
Operator
.Method is { } compoundMethod)
BoundTree\BoundExpression.cs (1)
447
get { return this.
Operator
.Method; }
Compilation\CSharpSemanticModel.cs (9)
3915
BinaryOperatorKind operandType = compoundAssignment.
Operator
.Kind.OperandTypes();
3916
BinaryOperatorKind op = compoundAssignment.
Operator
.Kind.Operator();
3917
isDynamic = compoundAssignment.
Operator
.Kind.IsDynamic();
3923
GetSymbolsAndResultKind(compoundAssignment, compoundAssignment.
Operator
.Method, compoundAssignment.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind);
3928
Debug.Assert((object)compoundAssignment.
Operator
.Method == null && compoundAssignment.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
3931
compoundAssignment.
Operator
.LeftType,
3932
compoundAssignment.
Operator
.RightType,
3933
compoundAssignment.
Operator
.ReturnType,
3934
compoundAssignment.
Operator
.Kind.IsChecked()));
FlowAnalysis\NullableWalker.cs (3)
10595
node.
Operator
.Kind,
10596
node.
Operator
.Method,
10597
node.
Operator
.ReturnType ?? node.Type,
Generated\BoundNodes.xml.Generated.cs (5)
1813
if (@operator != this.
Operator
|| left != this.Left || right != this.Right || leftPlaceholder != this.LeftPlaceholder || leftConversion != this.LeftConversion || finalPlaceholder != this.FinalPlaceholder || finalConversion != this.FinalConversion || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11084
return node.Update(node.
Operator
, left, right, leftPlaceholder, leftConversion, finalPlaceholder, finalConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type);
12813
updatedNode = node.Update(node.
Operator
, left, right, leftPlaceholder, leftConversion, finalPlaceholder, finalConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, infoAndType.Type!);
12818
updatedNode = node.Update(node.
Operator
, left, right, leftPlaceholder, leftConversion, finalPlaceholder, finalConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, node.Type);
15368
new TreeDumperNode("@operator", node.
Operator
, null),
Lowering\DiagnosticsPass_Warnings.cs (5)
288
if (!node.
Operator
.Kind.IsDynamic() && node.LeftConversion is BoundConversion { Conversion: { IsIdentity: false, Exists: true } conversion })
291
left = new BoundConversion(left.Syntax, left, conversion, node.
Operator
.Kind.IsChecked(),
292
explicitCastInCode: false, conversionGroupOpt: null, constantValueOpt: null, type: node.
Operator
.LeftType);
295
CheckForBitwiseOrSignExtend(node, node.
Operator
.Kind, left, node.Right);
721
if (!node.
Operator
.Kind.IsLifted())
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (6)
24
Debug.Assert(TypeSymbol.Equals(node.Right.Type, node.
Operator
.RightType, TypeCompareKind.ConsiderEverything2));
30
var kind = node.
Operator
.Kind;
142
BoundExpression operand = MakeBinaryOperator(syntax, node.
Operator
.Kind, opLHS, loweredRight, node.
Operator
.ReturnType, node.
Operator
.Method, node.
Operator
.ConstrainedToTypeOpt, isCompoundAssignment: true);
Operations\CSharpOperationFactory.cs (5)
1359
BinaryOperatorKind operatorKind = Helper.DeriveBinaryOperatorKind(boundCompoundAssignmentOperator.
Operator
.Kind);
1362
bool isLifted = boundCompoundAssignmentOperator.
Operator
.Kind.IsLifted();
1363
var method = boundCompoundAssignmentOperator.
Operator
.Method;
1364
bool isChecked = boundCompoundAssignmentOperator.
Operator
.Kind.IsChecked() || (method is not null && SyntaxFacts.IsCheckedOperator(method.Name));
1370
GetConstrainedToTypeForOperator(method, boundCompoundAssignmentOperator.
Operator
.ConstrainedToTypeOpt).GetPublicSymbol(),