22 references to RefersToLocation
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (7)
298
ReadonlyRef =
RefersToLocation
| RValue,
315
RefOrOut =
RefersToLocation
| RValue | Assignable,
341
return (kind & BindValueKind.
RefersToLocation
) != 0;
567
if ((valueKind & BindValueKind.
RefersToLocation
) == BindValueKind.
RefersToLocation
)
575
if ((valueKind & BindValueKind.
RefersToLocation
) == BindValueKind.
RefersToLocation
)
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)
854
node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.
RefersToLocation
))),
3441
if (!this.CheckValueKind(argument.Syntax, argument, BindValueKind.
RefersToLocation
, checkingReceiver: false, BindingDiagnosticBag.Discarded))
9117
if (CheckValueKind(node, expr, BindValueKind.
RefersToLocation
| BindValueKind.Assignable, checkingReceiver: false, BindingDiagnosticBag.Discarded))
9129
if (!CheckValueKind(node, expr, BindValueKind.
RefersToLocation
, checkingReceiver: false, BindingDiagnosticBag.Discarded))
Binder\Binder_Invocation.cs (2)
1342
? BindValueKind.
RefersToLocation
1343
: BindValueKind.
RefersToLocation
| BindValueKind.Assignable;
Binder\Binder_Operators.cs (2)
4346
BoundExpression trueExpr = BindValue(whenTrue, diagnostics, BindValueKind.RValue | BindValueKind.
RefersToLocation
);
4347
BoundExpression falseExpr = BindValue(whenFalse, diagnostics, BindValueKind.RValue | BindValueKind.
RefersToLocation
);
Binder\Binder_Statements.cs (1)
1440
var rhsKind = BindValueKind.
RefersToLocation
;
Binder\ForEachLoopBinder.cs (4)
340
requiredCurrentKind = BindValueKind.Assignable | BindValueKind.
RefersToLocation
;
343
requiredCurrentKind = BindValueKind.
RefersToLocation
;
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))