48 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder.ValueChecks.cs (31)
1487
return
GetValEscape
(fieldAccess.ReceiverOpt, localScopeDepth);
1929
SafeContext escapeScope =
GetValEscape
(data.Construction, localScopeDepth);
2040
escapeScope = escapeScope.Intersect(
GetValEscape
(receiver, localScopeDepth));
4006
valEscape =
GetValEscape
(element, localScopeDepth);
4092
return
GetValEscape
(placeholder.Receiver, placeholder.LocalScopeDepth);
4101
var consEscape =
GetValEscape
(conditional.Consequence, localScopeDepth);
4111
return consEscape.Intersect(
GetValEscape
(conditional.Alternative, localScopeDepth));
4116
return
GetValEscape
(coalescingOp.LeftOperand, localScopeDepth)
4117
.Intersect(
GetValEscape
(coalescingOp.RightOperand, localScopeDepth));
4130
return
GetValEscape
(fieldAccess.ReceiverOpt, localScopeDepth);
4275
escape = escape.Intersect(
GetValEscape
(initializerOpt, localScopeDepth));
4290
escape = escape.Intersect(
GetValEscape
(initializerOpt, localScopeDepth));
4299
return
GetValEscape
(withExpression.Receiver, localScopeDepth)
4300
.Intersect(
GetValEscape
(withExpression.InitializerExpression, localScopeDepth));
4318
return
GetValEscape
(unaryOperator.Operand, localScopeDepth);
4371
return
GetValEscape
(conversion.Operand, localScopeDepth);
4378
return
GetValEscape
(((BoundAssignmentOperator)expr).Right, localScopeDepth);
4381
return
GetValEscape
(((BoundNullCoalescingAssignmentOperator)expr).RightOperand, localScopeDepth);
4384
return
GetValEscape
(((BoundIncrementOperator)expr).Operand, localScopeDepth);
4403
return
GetValEscape
(compound.Left, localScopeDepth)
4404
.Intersect(
GetValEscape
(compound.Right, localScopeDepth));
4423
return
GetValEscape
(binary.Left, localScopeDepth)
4424
.Intersect(
GetValEscape
(binary.Right, localScopeDepth));
4429
return (range.LeftOperandOpt is { } left ?
GetValEscape
(left, localScopeDepth) : SafeContext.CallingMethod)
4430
.Intersect(range.RightOperandOpt is { } right ?
GetValEscape
(right, localScopeDepth) : SafeContext.CallingMethod);
4447
return
GetValEscape
(((BoundQueryClause)expr).Value, localScopeDepth);
4450
return
GetValEscape
(((BoundRangeVariable)expr).Value, localScopeDepth);
4568
narrowestScope = narrowestScope.Intersect(
GetValEscape
(element, localScopeDepth));
4600
:
GetValEscape
(assignment.Right, localScopeDepth);
4618
result =
GetValEscape
(expr, localScopeDepth);
4698
result = result.Intersect(
GetValEscape
(expression, localScopeDepth));
Binder\Binder_Operators.cs (2)
4385
SafeContext whenTrueEscape =
GetValEscape
(trueExpr, currentScope);
4386
SafeContext whenFalseEscape =
GetValEscape
(falseExpr, currentScope);
Binder\Binder_Statements.cs (3)
1572
leftEscape =
GetValEscape
(op1, _localScopeDepth);
1573
rightEscape =
GetValEscape
(op2, _localScopeDepth);
1597
var leftEscape =
GetValEscape
(op1, _localScopeDepth);
Binder\RefSafetyAnalysis.cs (12)
350
?
GetValEscape
(expr, _localScopeDepth)
395
using var _2 = new PatternInput(this,
GetValEscape
(node.Expression, _localScopeDepth));
404
using var _ = new PatternInput(this,
GetValEscape
(node.Expression, _localScopeDepth));
505
valEscapeScope =
GetValEscape
(initializer, _localScopeDepth);
558
using var _ = new PatternInput(this,
GetValEscape
(node.Expression, _localScopeDepth));
722
valEscapeScope = receiver.GetRefKind().IsWritableReference() ? GetRefEscape(receiver, _localScopeDepth) :
GetValEscape
(receiver, _localScopeDepth);
735
valEscapeScope =
GetValEscape
(arguments[argIndex], _localScopeDepth);
814
var escapeFrom =
GetValEscape
(node.InitializerExpressionOpt, _localScopeDepth);
910
GetAwaitableInstancePlaceholders(placeholders, node.AwaitableInfo,
GetValEscape
(node.Expression, _localScopeDepth));
971
placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder,
GetValEscape
(right, _localScopeDepth)));
1044
: new DeconstructionVariable(expr,
GetValEscape
(expr, _localScopeDepth), null);
1096
collectionEscape =
GetValEscape
(node.Expression, _localScopeDepth);