17 references to CheckValueKind
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (6)
636
if (!hasResolutionErrors &&
CheckValueKind
(expr.Syntax, expr, valueKind, checkingReceiver: false, diagnostics: diagnostics) ||
803
return
CheckValueKind
(node, fieldAccess.ReceiverOpt, valueKind, checkingReceiver: true, diagnostics);
915
(
CheckValueKind
(conditional.Consequence.Syntax, conditional.Consequence, valueKind, checkingReceiver: false, diagnostics: diagnostics) &
916
CheckValueKind
(conditional.Alternative.Syntax, conditional.Alternative, valueKind, checkingReceiver: false, diagnostics: diagnostics)))
1462
return
CheckValueKind
(node, assignment.Left, valueKind, checkingReceiver: false, diagnostics);
1609
CheckValueKind
(node, receiver, kind, true, diagnostics);
Binder\Binder_Conversions.cs (2)
455
if (
CheckValueKind
(syntax, source, BindValueKind.RefersToLocation, checkingReceiver: false, BindingDiagnosticBag.Discarded))
470
if (
CheckValueKind
(syntax, source, BindValueKind.RefersToLocation | BindValueKind.Assignable, checkingReceiver: false, BindingDiagnosticBag.Discarded))
Binder\Binder_Expressions.cs (4)
3441
if (!this.
CheckValueKind
(argument.Syntax, argument, BindValueKind.RefersToLocation, checkingReceiver: false, BindingDiagnosticBag.Discarded))
3453
if (this.
CheckValueKind
(argument.Syntax, argument, BindValueKind.Assignable, checkingReceiver: false, BindingDiagnosticBag.Discarded))
5965
if (!
CheckValueKind
(boundMember.Syntax, boundMember, valueKind, checkingReceiver: false, diagnostics: diagnostics))
8574
hasError = !
CheckValueKind
(node, receiver, BindValueKind.FixedReceiver, checkingReceiver: false, diagnostics: diagnostics);
Binder\Binder_Invocation.cs (1)
1344
var result = !
CheckValueKind
(receiver.Syntax, receiver, valueKind, checkingReceiver: true, BindingDiagnosticBag.Discarded);
Binder\Binder_Operators.cs (1)
2604
bool receiverIsLValue =
CheckValueKind
(receiver.Syntax, receiver, BindValueKind.AddressOf, checkingReceiver: false, diagnostics: BindingDiagnosticBag.Discarded);
Binder\ForEachLoopBinder.cs (3)
361
hasErrors |= !
CheckValueKind
(collectionExpr.Syntax, collectionExpr, requiredCurrentKind, checkingReceiver: false, diagnostics);
821
if (
CheckValueKind
(collectionExpr.Syntax, collectionExpr, BindValueKind.RefersToLocation | BindValueKind.Assignable, checkingReceiver: false, BindingDiagnosticBag.Discarded))
829
if (!
CheckValueKind
(collectionExpr.Syntax, collectionExpr, BindValueKind.RefersToLocation, checkingReceiver: false, BindingDiagnosticBag.Discarded))