63 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (63)
Binder\Binder.ValueChecks.cs (44)
1791
return
GetValEscape
(fieldAccess.ReceiverOpt);
2237
SafeContext escapeScope =
GetValEscape
(data.Construction);
2313
(false, false) =>
GetValEscape
(argument),
2333
escapeScope = escapeScope.Intersect(
GetValEscape
(methodInvocationInfo.Receiver));
2368
GetValEscape
(argument);
2396
:
GetValEscape
(argument);
3231
escapeTo = escapeTo.Union(
GetValEscape
(argument));
3244
inferredDestinationValEscape = inferredDestinationValEscape.Intersect(
GetValEscape
(argument));
3287
var toArgEscape =
GetValEscape
(mixableArg.Argument);
3331
:
GetValEscape
(fromArg));
4335
valEscape =
GetValEscape
(element);
4423
return
GetValEscape
(placeholder.Receiver);
4432
var consEscape =
GetValEscape
(conditional.Consequence);
4442
return consEscape.Intersect(
GetValEscape
(conditional.Alternative));
4447
return
GetValEscape
(coalescingOp.LeftOperand)
4448
.Intersect(
GetValEscape
(coalescingOp.RightOperand));
4461
return
GetValEscape
(fieldAccess.ReceiverOpt);
4560
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4575
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4584
return
GetValEscape
(withExpression.Receiver)
4585
.Intersect(
GetValEscape
(withExpression.InitializerExpression));
4596
return
GetValEscape
(unaryOperator.Operand);
4633
return
GetValEscape
(conversion.Operand);
4637
return
GetValEscape
(((BoundAssignmentOperator)expr).Right);
4641
return
GetValEscape
(nullCoalescingAssignment.LeftOperand)
4642
.Intersect(
GetValEscape
(nullCoalescingAssignment.RightOperand));
4663
return
GetValEscape
(increment.Operand);
4680
return
GetValEscape
(compound.Left);
4684
return
GetValEscape
(compound.Left)
4685
.Intersect(
GetValEscape
(compound.Right));
4697
return
GetValEscape
(binary.Left)
4698
.Intersect(
GetValEscape
(binary.Right));
4703
return (range.LeftOperandOpt is { } left ?
GetValEscape
(left) : SafeContext.CallingMethod)
4704
.Intersect(range.RightOperandOpt is { } right ?
GetValEscape
(right) : SafeContext.CallingMethod);
4714
return
GetValEscape
(((BoundQueryClause)expr).Value);
4717
return
GetValEscape
(((BoundRangeVariable)expr).Value);
4820
return
GetValEscape
(expr.CollectionCreation);
4843
narrowestScope = narrowestScope.Intersect(
GetValEscape
(element));
4857
:
GetValEscape
(expr));
4888
:
GetValEscape
(assignment.Right);
4906
result =
GetValEscape
(expr);
4960
:
GetValEscape
(escapeValue.Argument);
4990
result = result.Intersect(
GetValEscape
(expression));
5011
Debug.Assert(
GetValEscape
(expr).IsConvertibleTo(escapeTo));
Binder\Binder_Operators.cs (2)
6029
SafeContext whenTrueEscape =
GetValEscape
(trueExpr);
6030
SafeContext whenFalseEscape =
GetValEscape
(falseExpr);
Binder\Binder_Statements.cs (3)
1590
leftEscape =
GetValEscape
(op1);
1591
rightEscape =
GetValEscape
(op2);
1630
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);