63 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (63)
Binder\Binder.ValueChecks.cs (44)
1791return GetValEscape(fieldAccess.ReceiverOpt); 2232SafeContext escapeScope = GetValEscape(data.Construction); 2308(false, false) => GetValEscape(argument), 2328escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2363GetValEscape(argument); 2391: GetValEscape(argument); 3226escapeTo = escapeTo.Union(GetValEscape(argument)); 3239inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3282var toArgEscape = GetValEscape(mixableArg.Argument); 3326: GetValEscape(fromArg)); 4330valEscape = GetValEscape(element); 4418return GetValEscape(placeholder.Receiver); 4427var consEscape = GetValEscape(conditional.Consequence); 4437return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4442return GetValEscape(coalescingOp.LeftOperand) 4443.Intersect(GetValEscape(coalescingOp.RightOperand)); 4456return GetValEscape(fieldAccess.ReceiverOpt); 4555escape = escape.Intersect(GetValEscape(initializerOpt)); 4570escape = escape.Intersect(GetValEscape(initializerOpt)); 4579return GetValEscape(withExpression.Receiver) 4580.Intersect(GetValEscape(withExpression.InitializerExpression)); 4591return GetValEscape(unaryOperator.Operand); 4628return GetValEscape(conversion.Operand); 4632return GetValEscape(((BoundAssignmentOperator)expr).Right); 4636return GetValEscape(nullCoalescingAssignment.LeftOperand) 4637.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4658return GetValEscape(increment.Operand); 4675return GetValEscape(compound.Left); 4679return GetValEscape(compound.Left) 4680.Intersect(GetValEscape(compound.Right)); 4692return GetValEscape(binary.Left) 4693.Intersect(GetValEscape(binary.Right)); 4698return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4699.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4709return GetValEscape(((BoundQueryClause)expr).Value); 4712return GetValEscape(((BoundRangeVariable)expr).Value); 4815return GetValEscape(expr.CollectionCreation); 4838narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4852: GetValEscape(expr)); 4883: GetValEscape(assignment.Right); 4901result = GetValEscape(expr); 4955: GetValEscape(escapeValue.Argument); 4985result = result.Intersect(GetValEscape(expression)); 5006Debug.Assert(GetValEscape(expr).IsConvertibleTo(escapeTo));
Binder\Binder_Operators.cs (2)
5980SafeContext whenTrueEscape = GetValEscape(trueExpr); 5981SafeContext whenFalseEscape = GetValEscape(falseExpr);
Binder\Binder_Statements.cs (3)
1590leftEscape = GetValEscape(op1); 1591rightEscape = GetValEscape(op2); 1630var leftEscape = GetValEscape(op1);
Binder\RefSafetyAnalysis.cs (14)
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]); 1002var escapeFrom = GetValEscape(node.InitializerExpressionOpt); 1022if (!escapeFrom.IsConvertibleTo(GetValEscape(argument))) 1080GetAwaitableInstancePlaceholders(placeholders, node.AwaitableInfo, GetValEscape(node.Expression)); 1148placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right)))); 1161? GetValEscape(variable.Expression) 1226: new DeconstructionVariable(expr, GetValEscape(expr), null); 1271collectionEscape = GetValEscape(node.Expression);