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