69 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (69)
Binder\Binder.ValueChecks.cs (48)
1788return GetValEscape(fieldAccess.ReceiverOpt); 2240SafeContext escapeScope = GetValEscape(data.Construction); 2316(false, false) => GetValEscape(argument), 2336escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2371GetValEscape(argument); 2399: GetValEscape(argument); 3209escapeTo = escapeTo.Union(GetValEscape(argument)); 3222inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3265var toArgEscape = GetValEscape(mixableArg.Argument); 3309: GetValEscape(fromArg)); 4324valEscape = GetValEscape(element); 4413return GetValEscape(placeholder.Receiver); 4417return GetValEscape(((BoundImplicitIndexerReceiverPlaceholder)expr).Receiver); 4426var consEscape = GetValEscape(conditional.Consequence); 4436return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4441return GetValEscape(coalescingOp.LeftOperand) 4442.Intersect(GetValEscape(coalescingOp.RightOperand)); 4455return GetValEscape(fieldAccess.ReceiverOpt); 4554escape = escape.Intersect(GetValEscape(initializerOpt)); 4569escape = escape.Intersect(GetValEscape(initializerOpt)); 4578return GetValEscape(withExpression.Receiver) 4579.Intersect(GetValEscape(withExpression.InitializerExpression)); 4590return GetValEscape(unaryOperator.Operand); 4627return GetValEscape(conversion.Operand); 4631return GetValEscape(((BoundAssignmentOperator)expr).Right); 4635return GetValEscape(nullCoalescingAssignment.LeftOperand) 4636.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4657return GetValEscape(increment.Operand); 4674return GetValEscape(compound.Left); 4678return GetValEscape(compound.Left) 4679.Intersect(GetValEscape(compound.Right)); 4691return GetValEscape(binary.Left) 4692.Intersect(GetValEscape(binary.Right)); 4697return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4698.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4708return GetValEscape(((BoundQueryClause)expr).Value); 4711return GetValEscape(((BoundRangeVariable)expr).Value); 4811return GetValEscape(expr.CollectionCreation); 4815? GetValEscape(collectionCreation) 4851safeContext = GetValEscape(spreadElement.Expression); 4859safeContext = GetValEscape(elementExpression); 4873narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4887: GetValEscape(expr)); 4918: GetValEscape(assignment.Right); 4936result = GetValEscape(expr); 4990: GetValEscape(escapeValue.Argument); 5020result = result.Intersect(GetValEscape(expression)); 5041Debug.Assert(GetValEscape(expr).IsConvertibleTo(escapeTo));
Binder\Binder_Operators.cs (2)
6032SafeContext whenTrueEscape = GetValEscape(trueExpr); 6033SafeContext whenFalseEscape = GetValEscape(falseExpr);
Binder\Binder_Statements.cs (3)
1590leftEscape = GetValEscape(op1); 1591rightEscape = GetValEscape(op2); 1629var leftEscape = GetValEscape(op1);
Binder\RefSafetyAnalysis.cs (16)
412? GetValEscape(expr) 457using var _2 = new PatternInput(this, GetValEscape(node.Expression)); 466using var _ = new PatternInput(this, GetValEscape(node.Expression)); 567valEscapeScope = GetValEscape(initializer); 652using var _ = new PatternInput(this, GetValEscape(node.Expression)); 914valEscapeScope = receiver.GetRefKind().IsWritableReference() ? GetRefEscape(receiver) : GetValEscape(receiver); 942valEscapeScope = GetValEscape(arguments[argIndex]); 1004var escapeFrom = GetValEscape(node.InitializerExpressionOpt); 1047if (!initializerEscape.IsConvertibleTo(GetValEscape(argument))) 1117GetAwaitableInstancePlaceholders(placeholders, node.AwaitableInfo, GetValEscape(node.Expression)); 1185placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right)))); 1198? GetValEscape(variable.Expression) 1263: new DeconstructionVariable(expr, GetValEscape(expr), null); 1308collectionEscape = GetValEscape(node.Expression); 1376receiverScope = GetValEscape(collectionCreation); 1405spreadPlaceholders.Add((spreadElement.ElementPlaceholder, SafeContextAndLocation.Create(GetValEscape(spreadElement.Expression))));