2 writes to ReturnType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
37
this.
ReturnType
= returnType;
48
this.
ReturnType
= returnType;
23 references to ReturnType
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Operators.cs (8)
253
bestSignature.
ReturnType
,
265
var finalPlaceholder = new BoundValuePlaceholder(node, bestSignature.
ReturnType
);
1030
TypeSymbol resultType = signature.
ReturnType
;
1514
signature.
ReturnType
);
1531
signature.
ReturnType
);
1690
bool typesAreSame = TypeSymbol.Equals(signature.LeftType, signature.RightType, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(signature.LeftType, signature.
ReturnType
, TypeCompareKind.ConsiderEverything2);
1692
bool typeMatchesContainer = TypeSymbol.Equals(signature.
ReturnType
.StrippedType(), t, TypeCompareKind.ConsiderEverything2) ||
1812
!TypeSymbol.Equals(signature.LeftType, signature.
ReturnType
, TypeCompareKind.AllIgnoreOptions))
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
844
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
,
BoundTree\NullabilityRewriter.cs (1)
152
op = new BinaryOperatorSignature(op.Kind, op.LeftType, op.RightType, op.
ReturnType
, GetUpdatedSymbol(node, op.Method), op.ConstrainedToTypeOpt);
Compilation\CSharpCompilation.cs (1)
4322
if (csharpReturnType.SpecialType == signature.
ReturnType
.SpecialType &&
Compilation\CSharpSemanticModel.cs (1)
3945
compoundAssignment.Operator.
ReturnType
,
FlowAnalysis\NullableWalker.cs (1)
11208
node.Operator.
ReturnType
?? node.Type,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
207
Debug.Assert(node.Operator.
ReturnType
is { SpecialType: SpecialType.System_String });
213
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)
8367
string returnName = signature.
ReturnType
.ToTestDisplayString();
8393
Assert.Equal(isDynamic, signature.
ReturnType
.IsDynamic());
8831
Assert.Equal(op, new BinaryOperatorSignature(op.Kind, op.LeftType, op.RightType, op.
ReturnType
, op.Method, constrainedToTypeOpt: null));