62 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder.ValueChecks.cs (43)
1774
return
GetValEscape
(fieldAccess.ReceiverOpt);
2215
SafeContext escapeScope =
GetValEscape
(data.Construction);
2291
(false, false) =>
GetValEscape
(argument),
2311
escapeScope = escapeScope.Intersect(
GetValEscape
(methodInvocationInfo.Receiver));
2346
GetValEscape
(argument);
2374
:
GetValEscape
(argument);
3209
escapeTo = escapeTo.Union(
GetValEscape
(argument));
3222
inferredDestinationValEscape = inferredDestinationValEscape.Intersect(
GetValEscape
(argument));
3265
var toArgEscape =
GetValEscape
(mixableArg.Argument);
3309
:
GetValEscape
(fromArg));
4313
valEscape =
GetValEscape
(element);
4399
return
GetValEscape
(placeholder.Receiver);
4408
var consEscape =
GetValEscape
(conditional.Consequence);
4418
return consEscape.Intersect(
GetValEscape
(conditional.Alternative));
4423
return
GetValEscape
(coalescingOp.LeftOperand)
4424
.Intersect(
GetValEscape
(coalescingOp.RightOperand));
4437
return
GetValEscape
(fieldAccess.ReceiverOpt);
4536
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4551
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4560
return
GetValEscape
(withExpression.Receiver)
4561
.Intersect(
GetValEscape
(withExpression.InitializerExpression));
4572
return
GetValEscape
(unaryOperator.Operand);
4611
return
GetValEscape
(conversion.Operand);
4615
return
GetValEscape
(((BoundAssignmentOperator)expr).Right);
4619
return
GetValEscape
(nullCoalescingAssignment.LeftOperand)
4620
.Intersect(
GetValEscape
(nullCoalescingAssignment.RightOperand));
4641
return
GetValEscape
(increment.Operand);
4658
return
GetValEscape
(compound.Left);
4662
return
GetValEscape
(compound.Left)
4663
.Intersect(
GetValEscape
(compound.Right));
4675
return
GetValEscape
(binary.Left)
4676
.Intersect(
GetValEscape
(binary.Right));
4681
return (range.LeftOperandOpt is { } left ?
GetValEscape
(left) : SafeContext.CallingMethod)
4682
.Intersect(range.RightOperandOpt is { } right ?
GetValEscape
(right) : SafeContext.CallingMethod);
4692
return
GetValEscape
(((BoundQueryClause)expr).Value);
4695
return
GetValEscape
(((BoundRangeVariable)expr).Value);
4813
narrowestScope = narrowestScope.Intersect(
GetValEscape
(element));
4827
:
GetValEscape
(expr));
4858
:
GetValEscape
(assignment.Right);
4876
result =
GetValEscape
(expr);
4930
:
GetValEscape
(escapeValue.Argument);
4960
result = result.Intersect(
GetValEscape
(expression));
4981
Debug.Assert(
GetValEscape
(expr).IsConvertibleTo(escapeTo));
Binder\Binder_Operators.cs (2)
5979
SafeContext whenTrueEscape =
GetValEscape
(trueExpr);
5980
SafeContext whenFalseEscape =
GetValEscape
(falseExpr);
Binder\Binder_Statements.cs (3)
1589
leftEscape =
GetValEscape
(op1);
1590
rightEscape =
GetValEscape
(op2);
1629
var leftEscape =
GetValEscape
(op1);
Binder\RefSafetyAnalysis.cs (14)
411
?
GetValEscape
(expr)
456
using var _2 = new PatternInput(this,
GetValEscape
(node.Expression));
465
using var _ = new PatternInput(this,
GetValEscape
(node.Expression));
566
valEscapeScope =
GetValEscape
(initializer);
636
using var _ = new PatternInput(this,
GetValEscape
(node.Expression));
897
valEscapeScope = receiver.GetRefKind().IsWritableReference() ? GetRefEscape(receiver) :
GetValEscape
(receiver);
925
valEscapeScope =
GetValEscape
(arguments[argIndex]);
1002
var escapeFrom =
GetValEscape
(node.InitializerExpressionOpt);
1022
if (!escapeFrom.IsConvertibleTo(
GetValEscape
(argument)))
1080
GetAwaitableInstancePlaceholders(placeholders, node.AwaitableInfo,
GetValEscape
(node.Expression));
1148
placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(
GetValEscape
(right))));
1161
?
GetValEscape
(variable.Expression)
1226
: new DeconstructionVariable(expr,
GetValEscape
(expr), null);
1271
collectionEscape =
GetValEscape
(node.Expression);