62 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder.ValueChecks.cs (43)
1790return GetValEscape(fieldAccess.ReceiverOpt); 2231SafeContext escapeScope = GetValEscape(data.Construction); 2307(false, false) => GetValEscape(argument), 2327escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2362GetValEscape(argument); 2390: GetValEscape(argument); 3225escapeTo = escapeTo.Union(GetValEscape(argument)); 3238inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3281var toArgEscape = GetValEscape(mixableArg.Argument); 3325: GetValEscape(fromArg)); 4329valEscape = GetValEscape(element); 4415return GetValEscape(placeholder.Receiver); 4424var consEscape = GetValEscape(conditional.Consequence); 4434return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4439return GetValEscape(coalescingOp.LeftOperand) 4440.Intersect(GetValEscape(coalescingOp.RightOperand)); 4453return GetValEscape(fieldAccess.ReceiverOpt); 4552escape = escape.Intersect(GetValEscape(initializerOpt)); 4567escape = escape.Intersect(GetValEscape(initializerOpt)); 4576return GetValEscape(withExpression.Receiver) 4577.Intersect(GetValEscape(withExpression.InitializerExpression)); 4588return 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); 4829narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4843: GetValEscape(expr)); 4874: GetValEscape(assignment.Right); 4892result = GetValEscape(expr); 4946: GetValEscape(escapeValue.Argument); 4976result = result.Intersect(GetValEscape(expression)); 4997Debug.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);