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