69 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (69)
Binder\Binder_Operators.cs (2)
6056SafeContext whenTrueEscape = GetValEscape(trueExpr); 6057SafeContext whenFalseEscape = GetValEscape(falseExpr);
Binder\Binder_Statements.cs (3)
1590leftEscape = GetValEscape(op1); 1591rightEscape = GetValEscape(op2); 1629var leftEscape = GetValEscape(op1);
Binder\Binder.ValueChecks.cs (48)
1773return GetValEscape(fieldAccess.ReceiverOpt); 2225SafeContext escapeScope = GetValEscape(data.Construction); 2301(false, false) => GetValEscape(argument), 2321escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2356GetValEscape(argument); 2384: GetValEscape(argument); 3194escapeTo = escapeTo.Union(GetValEscape(argument)); 3207inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3250var toArgEscape = GetValEscape(mixableArg.Argument); 3294: GetValEscape(fromArg)); 4309valEscape = GetValEscape(element); 4398return GetValEscape(placeholder.Receiver); 4402return GetValEscape(((BoundImplicitIndexerReceiverPlaceholder)expr).Receiver); 4411var consEscape = GetValEscape(conditional.Consequence); 4421return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4426return GetValEscape(coalescingOp.LeftOperand) 4427.Intersect(GetValEscape(coalescingOp.RightOperand)); 4440return GetValEscape(fieldAccess.ReceiverOpt); 4539escape = escape.Intersect(GetValEscape(initializerOpt)); 4554escape = escape.Intersect(GetValEscape(initializerOpt)); 4563return GetValEscape(withExpression.Receiver) 4564.Intersect(GetValEscape(withExpression.InitializerExpression)); 4575return GetValEscape(unaryOperator.Operand); 4612return GetValEscape(conversion.Operand); 4616return GetValEscape(((BoundAssignmentOperator)expr).Right); 4620return GetValEscape(nullCoalescingAssignment.LeftOperand) 4621.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4642return GetValEscape(increment.Operand); 4659return GetValEscape(compound.Left); 4663return GetValEscape(compound.Left) 4664.Intersect(GetValEscape(compound.Right)); 4676return GetValEscape(binary.Left) 4677.Intersect(GetValEscape(binary.Right)); 4682return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4683.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4693return GetValEscape(((BoundQueryClause)expr).Value); 4696return GetValEscape(((BoundRangeVariable)expr).Value); 4796return GetValEscape(expr.CollectionCreation); 4800? GetValEscape(collectionCreation) 4836safeContext = GetValEscape(spreadElement.Expression); 4844safeContext = GetValEscape(elementExpression); 4858narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4872: GetValEscape(expr)); 4903: GetValEscape(assignment.Right); 4921result = GetValEscape(expr); 4975: GetValEscape(escapeValue.Argument); 5005result = result.Intersect(GetValEscape(expression)); 5026Debug.Assert(GetValEscape(expr).IsConvertibleTo(escapeTo));
Binder\RefSafetyAnalysis.cs (16)
453? GetValEscape(expr) 511using var _2 = new PatternInput(this, GetValEscape(node.Expression)); 520using var _ = new PatternInput(this, GetValEscape(node.Expression)); 621valEscapeScope = GetValEscape(initializer); 706using var _ = new PatternInput(this, GetValEscape(node.Expression)); 968valEscapeScope = receiver.GetRefKind().IsWritableReference() ? GetRefEscape(receiver) : GetValEscape(receiver); 996valEscapeScope = GetValEscape(arguments[argIndex]); 1058var escapeFrom = GetValEscape(node.InitializerExpressionOpt); 1101if (!initializerEscape.IsConvertibleTo(GetValEscape(argument))) 1171GetAwaitableInstancePlaceholders(placeholders, node.AwaitableInfo, GetValEscape(node.Expression)); 1239placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right)))); 1252? GetValEscape(variable.Expression) 1317: new DeconstructionVariable(expr, GetValEscape(expr), null); 1362collectionEscape = GetValEscape(node.Expression); 1430receiverScope = GetValEscape(collectionCreation); 1459spreadPlaceholders.Add((spreadElement.ElementPlaceholder, SafeContextAndLocation.Create(GetValEscape(spreadElement.Expression))));