74 references to RValue
Microsoft.CodeAnalysis.CSharp (74)
Binder\Binder.ValueChecks.cs (10)
304RValueOrMethodGroup = RValue + 1, 310CompoundAssignment = RValue | Assignable, 321ReadonlyRef = RefersToLocation | RValue, 338RefOrOut = RefersToLocation | RValue | Assignable, 349return (kind & ValueKindSignificantBitsMask) == BindValueKind.RValue; 576if (valueKind == BindValueKind.RValue) 583if (valueKind == BindValueKind.RValue) 665var resultKind = (valueKind == BindValueKind.RValue || valueKind == BindValueKind.RValueOrMethodGroup) ? 1797var setValueKind = setMethod.IsEffectivelyReadOnly ? BindValueKind.RValue : BindValueKind.Assignable; 3090Debug.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); 2536BoundExpression operand = this.BindValue(node.Expression, diagnostics, BindValueKind.RValue); 2561BoundExpression boundOperand = BindValue(node.Operand, diagnostics, BindValueKind.RValue); 2669BoundExpression boundOperand = BindValue(operand, diagnostics, BindValueKind.RValue); 3353BindValueKind.RValue : 4037var size = BindValue(dimension, diagnostics, BindValueKind.RValue); 4153var boundExpression = BindValue(expression, diagnostics, BindValueKind.RValue); 4170var boundExpression = BindValue(expression, diagnostics, BindValueKind.RValue); 4499count = BindValue(countSyntax, diagnostics, BindValueKind.RValue); 5214ExpressionElementSyntax expressionElementSyntax => @this.BindValue(expressionElementSyntax.Expression, diagnostics, BindValueKind.RValue), 5600Debug.Assert(rhsValueKind == BindValueKind.RValue); 5688var rhsKind = isRef ? GetRequiredRHSValueKindForRefAssignment(boundLeft) : BindValueKind.RValue; 5736var boundExpression = BindValue(memberInitializer, diagnostics, BindValueKind.RValue); 5751BindValueKind valueKind = isRhsNestedInitializer ? BindValueKind.RValue : (isRef ? BindValueKind.RefAssignable : BindValueKind.Assignable); 6047return ToBadExpression(boundMember, (valueKind == BindValueKind.RValue) ? LookupResultKind.NotAValue : LookupResultKind.NotAVariable); 6302var boundElementInitializer = BindInitializerExpressionOrValue(elementInitializer, initializerType, BindValueKind.RValue, implicitReceiver.Syntax, diagnostics); 6331exprBuilder.Add(BindValue(childElementInitializer, diagnostics, BindValueKind.RValue)); 7621boundLeft = CheckValue(boundLeft, BindValueKind.RValue, diagnostics); 7731boundLeft = CheckValue(boundLeft, BindValueKind.RValue, diagnostics); 8986receiver = CheckValue(receiver, BindValueKind.RValue, diagnostics); 10151lengthOrCountAccess = CheckValue(lengthOrCountAccess, BindValueKind.RValue, diagnostics); 10946var 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; 2636var expr = BindValue(node, diagnostics, BindValueKind.RValue); 3604BindValueKind 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),