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