62 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder.ValueChecks.cs (43)
1790
return
GetValEscape
(fieldAccess.ReceiverOpt);
2231
SafeContext escapeScope =
GetValEscape
(data.Construction);
2307
(false, false) =>
GetValEscape
(argument),
2327
escapeScope = escapeScope.Intersect(
GetValEscape
(methodInvocationInfo.Receiver));
2362
GetValEscape
(argument);
2390
:
GetValEscape
(argument);
3225
escapeTo = escapeTo.Union(
GetValEscape
(argument));
3238
inferredDestinationValEscape = inferredDestinationValEscape.Intersect(
GetValEscape
(argument));
3281
var toArgEscape =
GetValEscape
(mixableArg.Argument);
3325
:
GetValEscape
(fromArg));
4329
valEscape =
GetValEscape
(element);
4415
return
GetValEscape
(placeholder.Receiver);
4424
var consEscape =
GetValEscape
(conditional.Consequence);
4434
return consEscape.Intersect(
GetValEscape
(conditional.Alternative));
4439
return
GetValEscape
(coalescingOp.LeftOperand)
4440
.Intersect(
GetValEscape
(coalescingOp.RightOperand));
4453
return
GetValEscape
(fieldAccess.ReceiverOpt);
4552
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4567
escape = escape.Intersect(
GetValEscape
(initializerOpt));
4576
return
GetValEscape
(withExpression.Receiver)
4577
.Intersect(
GetValEscape
(withExpression.InitializerExpression));
4588
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);
4829
narrowestScope = narrowestScope.Intersect(
GetValEscape
(element));
4843
:
GetValEscape
(expr));
4874
:
GetValEscape
(assignment.Right);
4892
result =
GetValEscape
(expr);
4946
:
GetValEscape
(escapeValue.Argument);
4976
result = result.Intersect(
GetValEscape
(expression));
4997
Debug.Assert(
GetValEscape
(expr).IsConvertibleTo(escapeTo));
Binder\Binder_Operators.cs (2)
5980
SafeContext whenTrueEscape =
GetValEscape
(trueExpr);
5981
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);