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