2 writes to ReturnType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
37
this.
ReturnType
= returnType;
48
this.
ReturnType
= returnType;
21 references to ReturnType
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Operators.cs (7)
188
bestSignature.
ReturnType
,
199
var finalPlaceholder = new BoundValuePlaceholder(node, bestSignature.
ReturnType
);
630
TypeSymbol resultType = signature.
ReturnType
;
994
signature.
ReturnType
);
1011
signature.
ReturnType
);
1126
bool typesAreSame = TypeSymbol.Equals(signature.LeftType, signature.RightType, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(signature.LeftType, signature.
ReturnType
, TypeCompareKind.ConsiderEverything2);
1128
bool typeMatchesContainer = TypeSymbol.Equals(signature.
ReturnType
.StrippedType(), t, TypeCompareKind.ConsiderEverything2) ||
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
808
equalsIgnoringNullable(op.Signature.
ReturnType
, existingSignature.
ReturnType
) &&
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
}";
65
TypeSymbol.Equals(this.
ReturnType
, other.
ReturnType
, TypeCompareKind.ConsiderEverything2) &&
86
return Hash.Combine(
ReturnType
,
Compilation\CSharpCompilation.cs (1)
3960
if (csharpReturnType.SpecialType == signature.
ReturnType
.SpecialType &&
Compilation\CSharpSemanticModel.cs (1)
3921
compoundAssignment.Operator.
ReturnType
,
FlowAnalysis\NullableWalker.cs (2)
9665
if ((object)node.Operator.
ReturnType
!= null)
9674
resultType = InferResultNullability(node.Operator.Kind, node.Operator.Method, node.Operator.
ReturnType
, leftOnRightType, rightType);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
142
BoundExpression operand = MakeBinaryOperator(syntax, node.Operator.Kind, opLHS, loweredRight, node.Operator.
ReturnType
, node.Operator.Method, node.Operator.ConstrainedToTypeOpt, isCompoundAssignment: true);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\OperatorTests.cs (3)
8365
string returnName = signature.
ReturnType
.ToTestDisplayString();
8391
Assert.Equal(isDynamic, signature.
ReturnType
.IsDynamic());
8829
Assert.Equal(op, new BinaryOperatorSignature(op.Kind, op.LeftType, op.RightType, op.
ReturnType
, op.Method, constrainedToTypeOpt: null));