69 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (69)
Binder\Binder_Operators.cs (2)
6053
SafeContext whenTrueEscape =
GetValEscape
(trueExpr);
6054
SafeContext whenFalseEscape =
GetValEscape
(falseExpr);
Binder\Binder_Statements.cs (3)
1590
leftEscape =
GetValEscape
(op1);
1591
rightEscape =
GetValEscape
(op2);
1629
var leftEscape =
GetValEscape
(op1);
Binder\Binder.ValueChecks.cs (48)
1789
return
GetValEscape
(fieldAccess.ReceiverOpt);
2241
SafeContext escapeScope =
GetValEscape
(data.Construction);
2317
(false, false) =>
GetValEscape
(argument),
2337
escapeScope = escapeScope.Intersect(
GetValEscape
(methodInvocationInfo.Receiver));
2372
GetValEscape
(argument);
2400
:
GetValEscape
(argument);
3210
escapeTo = escapeTo.Union(
GetValEscape
(argument));
3223
inferredDestinationValEscape = inferredDestinationValEscape.Intersect(
GetValEscape
(argument));
3266
var toArgEscape =
GetValEscape
(mixableArg.Argument);
3310
:
GetValEscape
(fromArg));
4325
valEscape =
GetValEscape
(element);
4414
return
GetValEscape
(placeholder.Receiver);
4418
return
GetValEscape
(((BoundImplicitIndexerReceiverPlaceholder)expr).Receiver);
4427
var consEscape =
GetValEscape
(conditional.Consequence);
4437
return consEscape.Intersect(
GetValEscape
(conditional.Alternative));
4442
return
GetValEscape
(coalescingOp.LeftOperand)
4443
.Intersect(
GetValEscape
(coalescingOp.RightOperand));
4456
return
GetValEscape
(fieldAccess.ReceiverOpt);
4555
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4570
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4579
return
GetValEscape
(withExpression.Receiver)
4580
.Intersect(
GetValEscape
(withExpression.InitializerExpression));
4591
return
GetValEscape
(unaryOperator.Operand);
4628
return
GetValEscape
(conversion.Operand);
4632
return
GetValEscape
(((BoundAssignmentOperator)expr).Right);
4636
return
GetValEscape
(nullCoalescingAssignment.LeftOperand)
4637
.Intersect(
GetValEscape
(nullCoalescingAssignment.RightOperand));
4658
return
GetValEscape
(increment.Operand);
4675
return
GetValEscape
(compound.Left);
4679
return
GetValEscape
(compound.Left)
4680
.Intersect(
GetValEscape
(compound.Right));
4692
return
GetValEscape
(binary.Left)
4693
.Intersect(
GetValEscape
(binary.Right));
4698
return (range.LeftOperandOpt is { } left ?
GetValEscape
(left) : SafeContext.CallingMethod)
4699
.Intersect(range.RightOperandOpt is { } right ?
GetValEscape
(right) : SafeContext.CallingMethod);
4709
return
GetValEscape
(((BoundQueryClause)expr).Value);
4712
return
GetValEscape
(((BoundRangeVariable)expr).Value);
4812
return
GetValEscape
(expr.CollectionCreation);
4816
?
GetValEscape
(collectionCreation)
4852
safeContext =
GetValEscape
(spreadElement.Expression);
4860
safeContext =
GetValEscape
(elementExpression);
4874
narrowestScope = narrowestScope.Intersect(
GetValEscape
(element));
4888
:
GetValEscape
(expr));
4919
:
GetValEscape
(assignment.Right);
4937
result =
GetValEscape
(expr);
4991
:
GetValEscape
(escapeValue.Argument);
5021
result = result.Intersect(
GetValEscape
(expression));
5042
Debug.Assert(
GetValEscape
(expr).IsConvertibleTo(escapeTo));
Binder\RefSafetyAnalysis.cs (16)
417
?
GetValEscape
(expr)
462
using var _2 = new PatternInput(this,
GetValEscape
(node.Expression));
471
using var _ = new PatternInput(this,
GetValEscape
(node.Expression));
572
valEscapeScope =
GetValEscape
(initializer);
657
using var _ = new PatternInput(this,
GetValEscape
(node.Expression));
919
valEscapeScope = receiver.GetRefKind().IsWritableReference() ? GetRefEscape(receiver) :
GetValEscape
(receiver);
947
valEscapeScope =
GetValEscape
(arguments[argIndex]);
1009
var escapeFrom =
GetValEscape
(node.InitializerExpressionOpt);
1052
if (!initializerEscape.IsConvertibleTo(
GetValEscape
(argument)))
1122
GetAwaitableInstancePlaceholders(placeholders, node.AwaitableInfo,
GetValEscape
(node.Expression));
1190
placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(
GetValEscape
(right))));
1203
?
GetValEscape
(variable.Expression)
1268
: new DeconstructionVariable(expr,
GetValEscape
(expr), null);
1313
collectionEscape =
GetValEscape
(node.Expression);
1381
receiverScope =
GetValEscape
(collectionCreation);
1410
spreadPlaceholders.Add((spreadElement.ElementPlaceholder, SafeContextAndLocation.Create(
GetValEscape
(spreadElement.Expression))));