68 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (68)
Binder\Binder.ValueChecks.cs (47)
1792return GetValEscape(fieldAccess.ReceiverOpt); 2243SafeContext escapeScope = GetValEscape(data.Construction); 2319(false, false) => GetValEscape(argument), 2339escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2374GetValEscape(argument); 2402: GetValEscape(argument); 3237escapeTo = escapeTo.Union(GetValEscape(argument)); 3250inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3293var toArgEscape = GetValEscape(mixableArg.Argument); 3337: GetValEscape(fromArg)); 4341valEscape = GetValEscape(element); 4430return GetValEscape(placeholder.Receiver); 4439var consEscape = GetValEscape(conditional.Consequence); 4449return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4454return GetValEscape(coalescingOp.LeftOperand) 4455.Intersect(GetValEscape(coalescingOp.RightOperand)); 4468return GetValEscape(fieldAccess.ReceiverOpt); 4567escape = escape.Intersect(GetValEscape(initializerOpt)); 4582escape = escape.Intersect(GetValEscape(initializerOpt)); 4591return GetValEscape(withExpression.Receiver) 4592.Intersect(GetValEscape(withExpression.InitializerExpression)); 4603return GetValEscape(unaryOperator.Operand); 4640return GetValEscape(conversion.Operand); 4644return GetValEscape(((BoundAssignmentOperator)expr).Right); 4648return GetValEscape(nullCoalescingAssignment.LeftOperand) 4649.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4670return GetValEscape(increment.Operand); 4687return GetValEscape(compound.Left); 4691return GetValEscape(compound.Left) 4692.Intersect(GetValEscape(compound.Right)); 4704return GetValEscape(binary.Left) 4705.Intersect(GetValEscape(binary.Right)); 4710return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4711.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4721return GetValEscape(((BoundQueryClause)expr).Value); 4724return GetValEscape(((BoundRangeVariable)expr).Value); 4824return GetValEscape(expr.CollectionCreation); 4828? GetValEscape(collectionCreation) 4864safeContext = GetValEscape(spreadElement.Expression); 4872safeContext = GetValEscape(elementExpression); 4886narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4900: GetValEscape(expr)); 4931: GetValEscape(assignment.Right); 4949result = GetValEscape(expr); 5003: GetValEscape(escapeValue.Argument); 5033result = result.Intersect(GetValEscape(expression)); 5054Debug.Assert(GetValEscape(expr).IsConvertibleTo(escapeTo));
Binder\Binder_Operators.cs (2)
6029SafeContext whenTrueEscape = GetValEscape(trueExpr); 6030SafeContext whenFalseEscape = GetValEscape(falseExpr);
Binder\Binder_Statements.cs (3)
1590leftEscape = GetValEscape(op1); 1591rightEscape = GetValEscape(op2); 1630var leftEscape = GetValEscape(op1);
Binder\RefSafetyAnalysis.cs (16)
411? GetValEscape(expr) 456using var _2 = new PatternInput(this, GetValEscape(node.Expression)); 465using var _ = new PatternInput(this, GetValEscape(node.Expression)); 566valEscapeScope = GetValEscape(initializer); 636using var _ = new PatternInput(this, GetValEscape(node.Expression)); 897valEscapeScope = receiver.GetRefKind().IsWritableReference() ? GetRefEscape(receiver) : GetValEscape(receiver); 925valEscapeScope = GetValEscape(arguments[argIndex]); 987var escapeFrom = GetValEscape(node.InitializerExpressionOpt); 1030if (!initializerEscape.IsConvertibleTo(GetValEscape(argument))) 1087GetAwaitableInstancePlaceholders(placeholders, node.AwaitableInfo, GetValEscape(node.Expression)); 1155placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right)))); 1168? GetValEscape(variable.Expression) 1233: new DeconstructionVariable(expr, GetValEscape(expr), null); 1278collectionEscape = GetValEscape(node.Expression); 1346receiverScope = GetValEscape(collectionCreation); 1375spreadPlaceholders.Add((spreadElement.ElementPlaceholder, SafeContextAndLocation.Create(GetValEscape(spreadElement.Expression))));