74 references to RValue
Microsoft.CodeAnalysis.CSharp (74)
Binder\Binder.ValueChecks.cs (10)
281RValueOrMethodGroup = RValue + 1, 287CompoundAssignment = RValue | Assignable, 298ReadonlyRef = RefersToLocation | RValue, 315RefOrOut = RefersToLocation | RValue | Assignable, 326return (kind & ValueKindSignificantBitsMask) == BindValueKind.RValue; 553if (valueKind == BindValueKind.RValue) 560if (valueKind == BindValueKind.RValue) 642var resultKind = (valueKind == BindValueKind.RValue || valueKind == BindValueKind.RValueOrMethodGroup) ? 1774var setValueKind = setMethod.IsEffectivelyReadOnly ? BindValueKind.RValue : BindValueKind.Assignable; 3067Debug.Assert(kind != BindValueKind.RValue);
Binder\Binder_Attributes.cs (1)
561BoundExpression namedArgumentValue = this.BindValue(namedArgument.Expression, diagnostics, BindValueKind.RValue);
Binder\Binder_Deconstruct.cs (1)
99BoundExpression boundRight = rightPlaceholder ?? BindValue(right, deconstructionDiagnostics, BindValueKind.RValue);
Binder\Binder_Expressions.cs (29)
244return BindToNaturalType(BindValue(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType); 261return CheckValue(valueOrType, BindValueKind.RValue, diagnostics); 506valueBeforeConversion = defaultValueBinder.BindValue(defaultValueSyntax.Value, diagnostics, BindValueKind.RValue); 524var initializer = initializerBinder.BindValue(equalsValueSyntax.Value, diagnostics, BindValueKind.RValue); 1006ImmutableArray.Create(BindValue(arguments[0].Expression, diagnostics, BindValueKind.RValue)) : 1036BoundExpression boundArgument = BindValue(argumentSyntax.Expression, diagnostics, BindValueKind.RValue); 1217BoundExpression argument = BindValue(node.Expression, diagnostics, BindValueKind.RValue); 1265BoundExpression argument = BindValue(node.Expression, diagnostics, BindValueKind.RValue); 2539BoundExpression operand = this.BindValue(node.Expression, diagnostics, BindValueKind.RValue); 2564BoundExpression boundOperand = BindValue(node.Operand, diagnostics, BindValueKind.RValue); 2672BoundExpression boundOperand = BindValue(operand, diagnostics, BindValueKind.RValue); 3356BindValueKind.RValue : 4040var size = BindValue(dimension, diagnostics, BindValueKind.RValue); 4156var boundExpression = BindValue(expression, diagnostics, BindValueKind.RValue); 4173var boundExpression = BindValue(expression, diagnostics, BindValueKind.RValue); 4502count = BindValue(countSyntax, diagnostics, BindValueKind.RValue); 5217ExpressionElementSyntax expressionElementSyntax => @this.BindValue(expressionElementSyntax.Expression, diagnostics, BindValueKind.RValue), 5603Debug.Assert(rhsValueKind == BindValueKind.RValue); 5691var rhsKind = isRef ? GetRequiredRHSValueKindForRefAssignment(boundLeft) : BindValueKind.RValue; 5739var boundExpression = BindValue(memberInitializer, diagnostics, BindValueKind.RValue); 5754BindValueKind valueKind = isRhsNestedInitializer ? BindValueKind.RValue : (isRef ? BindValueKind.RefAssignable : BindValueKind.Assignable); 6050return ToBadExpression(boundMember, (valueKind == BindValueKind.RValue) ? LookupResultKind.NotAValue : LookupResultKind.NotAVariable); 6305var boundElementInitializer = BindInitializerExpressionOrValue(elementInitializer, initializerType, BindValueKind.RValue, implicitReceiver.Syntax, diagnostics); 6334exprBuilder.Add(BindValue(childElementInitializer, diagnostics, BindValueKind.RValue)); 7624boundLeft = CheckValue(boundLeft, BindValueKind.RValue, diagnostics); 7734boundLeft = CheckValue(boundLeft, BindValueKind.RValue, diagnostics); 8989receiver = CheckValue(receiver, BindValueKind.RValue, diagnostics); 10154lengthOrCountAccess = CheckValue(lengthOrCountAccess, BindValueKind.RValue, diagnostics); 10949var access = conditionalAccessBinder.BindValue(node.WhenNotNull, diagnostics, BindValueKind.RValue);
Binder\Binder_InterpolatedString.cs (2)
90var value = BindValue(interpolation.Expression, diagnostics, BindValueKind.RValue); 101alignment = GenerateConversionForAssignment(intType, BindValue(interpolation.AlignmentClause.Value, diagnostics, Binder.BindValueKind.RValue), diagnostics);
Binder\Binder_Invocation.cs (1)
1860return CheckValue(typeOrValue.Data.ValueExpression, BindValueKind.RValue, diagnostics);
Binder\Binder_Operators.cs (11)
27BoundExpression right = BindValue(node.Right, diagnostics, BindValueKind.RValue); 496BoundExpression right = BindValue(syntaxNode.Right, diagnostics, BindValueKind.RValue); 3044return BindValueKind.RValue; 3061return BindValueKind.RValue; 3982var leftOperand = BindValue(node.Left, diagnostics, BindValueKind.RValue); 3984var rightOperand = BindValue(node.Right, diagnostics, BindValueKind.RValue); 4173BoundExpression rightOperand = BindValue(node.Right, diagnostics, BindValueKind.RValue); 4300BoundExpression trueExpr = BindValue(whenTrue, diagnostics, BindValueKind.RValue); 4301BoundExpression falseExpr = BindValue(whenFalse, diagnostics, BindValueKind.RValue); 4341BoundExpression trueExpr = BindValue(whenTrue, diagnostics, BindValueKind.RValue | BindValueKind.RefersToLocation); 4342BoundExpression falseExpr = BindValue(whenFalse, diagnostics, BindValueKind.RValue | BindValueKind.RefersToLocation);
Binder\Binder_Patterns.cs (5)
239indexerAccess = CheckValue(indexerAccess, BindValueKind.RValue, diagnostics); 388indexerAccess = CheckValue(indexerAccess, BindValueKind.RValue, diagnostics); 536expression = CheckValue(expression, BindValueKind.RValue, diagnostics); 1588boundMember = CheckValue(boundMember, BindValueKind.RValue, diagnostics); 1601if (!hasErrors && !CheckValueKind(node: memberName.Parent, expr: boundMember, valueKind: BindValueKind.RValue,
Binder\Binder_Query.cs (3)
837BoundExpression boundExpression = lambdaBodyBinder.BindValue(expression, diagnostics, BindValueKind.RValue); 847BoundExpression boundExpression = lambdaBodyBinder.BindValue(expression, diagnostics, BindValueKind.RValue); 1001var checkedUltimateReceiver = CheckValue(ultimateReceiver, BindValueKind.RValue, diagnostics);
Binder\Binder_Statements.cs (6)
240: BindValue(node.Expression, diagnostics, BindValueKind.RValue); 395var boundExpr = BindValue(exprSyntax, diagnostics, BindValueKind.RValue); 919valueKind = BindValueKind.RValue; 1425var rhsKind = isRef ? GetRequiredRHSValueKindForRefAssignment(op1) : BindValueKind.RValue; 2639var expr = BindValue(node, diagnostics, BindValueKind.RValue); 3607BindValueKind requiredValueKind = BindValueKind.RValue;
Binder\ForEachLoopBinder.cs (2)
337requiredCurrentKind = BindValueKind.RValue; 611BoundExpression collectionExpr = this.GetBinder(collectionSyntax).BindValue(collectionSyntax, diagnostics, BindValueKind.RValue);
Binder\SwitchBinder.cs (1)
497gotoCaseExpressionOpt = gotoBinder.BindValue(node.Expression, diagnostics, BindValueKind.RValue);
Binder\SwitchExpressionArmBinder.cs (1)
46BoundExpression armResult = armBinder.BindValue(node.Expression, diagnostics, BindValueKind.RValue);
Symbols\Source\SourceFixedFieldSymbol.cs (1)
92binder.BindValue(sizeExpression, diagnostics, Binder.BindValueKind.RValue),