27 references to Assignable
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.ValueChecks.cs (14)
287
CompoundAssignment = RValue |
Assignable
,
315
RefOrOut = RefersToLocation | RValue |
Assignable
,
331
return (kind & ValueKindSignificantBitsMask) == BindValueKind.
Assignable
;
346
return (kind & BindValueKind.
Assignable
) != 0;
377
BindValueKind.
Assignable
=> AccessorKind.Set,
386
var useSetAccessor = coreValueKind == BindValueKind.
Assignable
&& indexerAccess.Indexer.RefKind != RefKind.Ref;
505
Debug.Assert(valueKind is (BindValueKind.
Assignable
or BindValueKind.RefOrOut or BindValueKind.RefAssignable) || diagnostics.DiagnosticBag is null || diagnostics.HasAnyResolvedErrors());
1372
return CheckIsValidReceiverForVariable(node, fieldAccess.ReceiverOpt, BindValueKind.
Assignable
, diagnostics);
1573
if (!CheckIsValidReceiverForVariable(eventSyntax, receiver, BindValueKind.
Assignable
, diagnostics))
1580
if (eventSymbol.IsWindowsRuntimeEvent && valueKind != BindValueKind.
Assignable
)
1774
var setValueKind = setMethod.IsEffectivelyReadOnly ? BindValueKind.RValue : BindValueKind.
Assignable
;
3107
case BindValueKind.
Assignable
:
3139
case BindValueKind.
Assignable
:
3179
case BindValueKind.
Assignable
:
Binder\Binder_Conversions.cs (1)
470
if (CheckValueKind(syntax, source, BindValueKind.RefersToLocation | BindValueKind.
Assignable
, checkingReceiver: false, BindingDiagnosticBag.Discarded))
Binder\Binder_Deconstruct.cs (1)
791
var checkedVariable = CheckValue(boundVariable, BindValueKind.
Assignable
, diagnostics);
Binder\Binder_Expressions.cs (4)
3453
if (this.CheckValueKind(argument.Syntax, argument, BindValueKind.
Assignable
, checkingReceiver: false, BindingDiagnosticBag.Discarded))
5754
BindValueKind valueKind = isRhsNestedInitializer ? BindValueKind.RValue : (isRef ? BindValueKind.RefAssignable : BindValueKind.
Assignable
);
5767
leftSyntax, implicitReceiver, BindValueKind.
Assignable
, false, diagnostics);
9117
if (CheckValueKind(node, expr, BindValueKind.RefersToLocation | BindValueKind.
Assignable
, checkingReceiver: false, BindingDiagnosticBag.Discarded))
Binder\Binder_Invocation.cs (1)
1343
: BindValueKind.RefersToLocation | BindValueKind.
Assignable
;
Binder\Binder_Operators.cs (2)
99
if (left.Kind == BoundKind.EventAccess && !CheckEventValueKind((BoundEventAccess)left, BindValueKind.
Assignable
, diagnostics))
3034
return BindValueKind.
Assignable
;
Binder\Binder_Statements.cs (2)
1417
var lhsKind = isRef ? BindValueKind.RefAssignable : BindValueKind.
Assignable
;
1450
rhsKind |= BindValueKind.
Assignable
;
Binder\ForEachLoopBinder.cs (2)
340
requiredCurrentKind = BindValueKind.
Assignable
| BindValueKind.RefersToLocation;
821
if (CheckValueKind(collectionExpr.Syntax, collectionExpr, BindValueKind.RefersToLocation | BindValueKind.
Assignable
, checkingReceiver: false, BindingDiagnosticBag.Discarded))