69 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (69)
Binder\Binder.ValueChecks.cs (48)
1788
return
GetValEscape
(fieldAccess.ReceiverOpt);
2240
SafeContext escapeScope =
GetValEscape
(data.Construction);
2316
(false, false) =>
GetValEscape
(argument),
2336
escapeScope = escapeScope.Intersect(
GetValEscape
(methodInvocationInfo.Receiver));
2371
GetValEscape
(argument);
2399
:
GetValEscape
(argument);
3209
escapeTo = escapeTo.Union(
GetValEscape
(argument));
3222
inferredDestinationValEscape = inferredDestinationValEscape.Intersect(
GetValEscape
(argument));
3265
var toArgEscape =
GetValEscape
(mixableArg.Argument);
3309
:
GetValEscape
(fromArg));
4324
valEscape =
GetValEscape
(element);
4413
return
GetValEscape
(placeholder.Receiver);
4417
return
GetValEscape
(((BoundImplicitIndexerReceiverPlaceholder)expr).Receiver);
4426
var consEscape =
GetValEscape
(conditional.Consequence);
4436
return consEscape.Intersect(
GetValEscape
(conditional.Alternative));
4441
return
GetValEscape
(coalescingOp.LeftOperand)
4442
.Intersect(
GetValEscape
(coalescingOp.RightOperand));
4455
return
GetValEscape
(fieldAccess.ReceiverOpt);
4554
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4569
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4578
return
GetValEscape
(withExpression.Receiver)
4579
.Intersect(
GetValEscape
(withExpression.InitializerExpression));
4590
return
GetValEscape
(unaryOperator.Operand);
4627
return
GetValEscape
(conversion.Operand);
4631
return
GetValEscape
(((BoundAssignmentOperator)expr).Right);
4635
return
GetValEscape
(nullCoalescingAssignment.LeftOperand)
4636
.Intersect(
GetValEscape
(nullCoalescingAssignment.RightOperand));
4657
return
GetValEscape
(increment.Operand);
4674
return
GetValEscape
(compound.Left);
4678
return
GetValEscape
(compound.Left)
4679
.Intersect(
GetValEscape
(compound.Right));
4691
return
GetValEscape
(binary.Left)
4692
.Intersect(
GetValEscape
(binary.Right));
4697
return (range.LeftOperandOpt is { } left ?
GetValEscape
(left) : SafeContext.CallingMethod)
4698
.Intersect(range.RightOperandOpt is { } right ?
GetValEscape
(right) : SafeContext.CallingMethod);
4708
return
GetValEscape
(((BoundQueryClause)expr).Value);
4711
return
GetValEscape
(((BoundRangeVariable)expr).Value);
4811
return
GetValEscape
(expr.CollectionCreation);
4815
?
GetValEscape
(collectionCreation)
4851
safeContext =
GetValEscape
(spreadElement.Expression);
4859
safeContext =
GetValEscape
(elementExpression);
4873
narrowestScope = narrowestScope.Intersect(
GetValEscape
(element));
4887
:
GetValEscape
(expr));
4918
:
GetValEscape
(assignment.Right);
4936
result =
GetValEscape
(expr);
4990
:
GetValEscape
(escapeValue.Argument);
5020
result = result.Intersect(
GetValEscape
(expression));
5041
Debug.Assert(
GetValEscape
(expr).IsConvertibleTo(escapeTo));
Binder\Binder_Operators.cs (2)
6032
SafeContext whenTrueEscape =
GetValEscape
(trueExpr);
6033
SafeContext whenFalseEscape =
GetValEscape
(falseExpr);
Binder\Binder_Statements.cs (3)
1590
leftEscape =
GetValEscape
(op1);
1591
rightEscape =
GetValEscape
(op2);
1629
var leftEscape =
GetValEscape
(op1);
Binder\RefSafetyAnalysis.cs (16)
412
?
GetValEscape
(expr)
457
using var _2 = new PatternInput(this,
GetValEscape
(node.Expression));
466
using var _ = new PatternInput(this,
GetValEscape
(node.Expression));
567
valEscapeScope =
GetValEscape
(initializer);
652
using var _ = new PatternInput(this,
GetValEscape
(node.Expression));
914
valEscapeScope = receiver.GetRefKind().IsWritableReference() ? GetRefEscape(receiver) :
GetValEscape
(receiver);
942
valEscapeScope =
GetValEscape
(arguments[argIndex]);
1004
var escapeFrom =
GetValEscape
(node.InitializerExpressionOpt);
1047
if (!initializerEscape.IsConvertibleTo(
GetValEscape
(argument)))
1117
GetAwaitableInstancePlaceholders(placeholders, node.AwaitableInfo,
GetValEscape
(node.Expression));
1185
placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(
GetValEscape
(right))));
1198
?
GetValEscape
(variable.Expression)
1263
: new DeconstructionVariable(expr,
GetValEscape
(expr), null);
1308
collectionEscape =
GetValEscape
(node.Expression);
1376
receiverScope =
GetValEscape
(collectionCreation);
1405
spreadPlaceholders.Add((spreadElement.ElementPlaceholder, SafeContextAndLocation.Create(
GetValEscape
(spreadElement.Expression))));