17 references to CheckValueKind
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (6)
659
if (!hasResolutionErrors &&
CheckValueKind
(expr.Syntax, expr, valueKind, checkingReceiver: false, diagnostics: diagnostics) ||
826
return
CheckValueKind
(node, fieldAccess.ReceiverOpt, valueKind, checkingReceiver: true, diagnostics);
938
(
CheckValueKind
(conditional.Consequence.Syntax, conditional.Consequence, valueKind, checkingReceiver: false, diagnostics: diagnostics) &
939
CheckValueKind
(conditional.Alternative.Syntax, conditional.Alternative, valueKind, checkingReceiver: false, diagnostics: diagnostics)))
1485
return
CheckValueKind
(node, assignment.Left, valueKind, checkingReceiver: false, diagnostics);
1632
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)
3438
if (!this.
CheckValueKind
(argument.Syntax, argument, BindValueKind.RefersToLocation, checkingReceiver: false, BindingDiagnosticBag.Discarded))
3450
if (this.
CheckValueKind
(argument.Syntax, argument, BindValueKind.Assignable, checkingReceiver: false, BindingDiagnosticBag.Discarded))
5962
if (!
CheckValueKind
(boundMember.Syntax, boundMember, valueKind, checkingReceiver: false, diagnostics: diagnostics))
8573
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)
2599
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))