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