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