62 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder.ValueChecks.cs (43)
1746return GetValEscape(fieldAccess.ReceiverOpt); 2187SafeContext escapeScope = GetValEscape(data.Construction); 2263(false, false) => GetValEscape(argument), 2283escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2318GetValEscape(argument); 2346: GetValEscape(argument); 3181escapeTo = escapeTo.Union(GetValEscape(argument)); 3194inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3237var toArgEscape = GetValEscape(mixableArg.Argument); 3281: GetValEscape(fromArg)); 4285valEscape = GetValEscape(element); 4371return GetValEscape(placeholder.Receiver); 4380var consEscape = GetValEscape(conditional.Consequence); 4390return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4395return GetValEscape(coalescingOp.LeftOperand) 4396.Intersect(GetValEscape(coalescingOp.RightOperand)); 4409return GetValEscape(fieldAccess.ReceiverOpt); 4508escape = escape.Intersect(GetValEscape(initializerOpt)); 4523escape = escape.Intersect(GetValEscape(initializerOpt)); 4532return GetValEscape(withExpression.Receiver) 4533.Intersect(GetValEscape(withExpression.InitializerExpression)); 4544return GetValEscape(unaryOperator.Operand); 4583return GetValEscape(conversion.Operand); 4587return GetValEscape(((BoundAssignmentOperator)expr).Right); 4591return GetValEscape(nullCoalescingAssignment.LeftOperand) 4592.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4613return GetValEscape(increment.Operand); 4630return GetValEscape(compound.Left); 4634return GetValEscape(compound.Left) 4635.Intersect(GetValEscape(compound.Right)); 4647return GetValEscape(binary.Left) 4648.Intersect(GetValEscape(binary.Right)); 4653return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4654.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4664return GetValEscape(((BoundQueryClause)expr).Value); 4667return GetValEscape(((BoundRangeVariable)expr).Value); 4785narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4799: GetValEscape(expr)); 4830: GetValEscape(assignment.Right); 4848result = GetValEscape(expr); 4902: GetValEscape(escapeValue.Argument); 4932result = result.Intersect(GetValEscape(expression)); 4953Debug.Assert(GetValEscape(expr).IsConvertibleTo(escapeTo));
Binder\Binder_Operators.cs (2)
5983SafeContext whenTrueEscape = GetValEscape(trueExpr); 5984SafeContext whenFalseEscape = GetValEscape(falseExpr);
Binder\Binder_Statements.cs (3)
1589leftEscape = GetValEscape(op1); 1590rightEscape = GetValEscape(op2); 1629var 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);