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