2 writes to Kind
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
34
this.
Kind
= kind;
45
this.
Kind
= kind;
36 references to Kind
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Operators.cs (13)
178
CheckNativeIntegerFeatureAvailability(bestSignature.
Kind
, node, diagnostics);
180
isUnsignedRightShift: bestSignature.
Kind
.Operator() == BinaryOperatorKind.UnsignedRightShift, bestSignature.ConstrainedToTypeOpt, diagnostics);
185
bestSignature.
Kind
.WithOverflowChecksIfApplicable(CheckOverflowAtRuntime),
195
bool isPredefinedOperator = !bestSignature.
Kind
.IsUserDefined();
584
BinaryOperatorKind resultOperatorKind = signature.
Kind
;
721
bool isObjectEquality = signature.
Kind
== BinaryOperatorKind.ObjectEqual || signature.
Kind
== BinaryOperatorKind.ObjectNotEqual;
730
(signature.
Kind
.Operator() == BinaryOperatorKind.Equal || signature.
Kind
.Operator() == BinaryOperatorKind.NotEqual) &&
992
if (!bothBool && !signature.
Kind
.IsUserDefined())
1000
var resultKind = kind | signature.
Kind
.OperandTypes();
1001
if (signature.
Kind
.IsLifted())
1106
Debug.Assert(signature.
Kind
.OperandTypes() == BinaryOperatorKind.UserDefined);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (4)
1260
bool lifted1 = op1.
Kind
.IsLifted();
1261
bool lifted2 = op2.
Kind
.IsLifted();
1323
if (op1.
Kind
.IsLifted())
1340
if (op2.
Kind
.IsLifted())
Binder\Semantics\Operators\BinaryOperatorSignature.cs (4)
56
return $"kind: {this.
Kind
} leftType: {this.LeftType} leftRefKind: {this.LeftRefKind} rightType: {this.RightType} rightRefKind: {this.RightRefKind} return: {this.ReturnType}";
62
this.
Kind
== other.
Kind
&&
89
Hash.Combine(Method, (int)
Kind
))));
Compilation\BuiltInOperators.cs (1)
679
switch (op.
Kind
.OperandTypes())
Compilation\CSharpSemanticModel.cs (4)
3915
BinaryOperatorKind operandType = compoundAssignment.Operator.
Kind
.OperandTypes();
3916
BinaryOperatorKind op = compoundAssignment.Operator.
Kind
.Operator();
3917
isDynamic = compoundAssignment.Operator.
Kind
.IsDynamic();
3934
compoundAssignment.Operator.
Kind
.IsChecked()));
FlowAnalysis\NullableWalker.cs (1)
10537
node.Operator.
Kind
,
Lowering\DiagnosticsPass_Warnings.cs (4)
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(),
295
CheckForBitwiseOrSignExtend(node, node.Operator.
Kind
, left, node.Right);
721
if (!node.Operator.
Kind
.IsLifted())
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
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 (3)
1359
BinaryOperatorKind operatorKind = Helper.DeriveBinaryOperatorKind(boundCompoundAssignmentOperator.Operator.
Kind
);
1362
bool isLifted = boundCompoundAssignmentOperator.Operator.
Kind
.IsLifted();
1364
bool isChecked = boundCompoundAssignmentOperator.Operator.
Kind
.IsChecked() || (method is not null && SyntaxFacts.IsCheckedOperator(method.Name));