63 references to GetValEscape
Microsoft.CodeAnalysis.CSharp (63)
Binder\Binder.ValueChecks.cs (44)
1791return GetValEscape(fieldAccess.ReceiverOpt); 2237SafeContext escapeScope = GetValEscape(data.Construction); 2313(false, false) => GetValEscape(argument), 2333escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2368GetValEscape(argument); 2396: GetValEscape(argument); 3231escapeTo = escapeTo.Union(GetValEscape(argument)); 3244inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3287var toArgEscape = GetValEscape(mixableArg.Argument); 3331: GetValEscape(fromArg)); 4335valEscape = GetValEscape(element); 4423return GetValEscape(placeholder.Receiver); 4432var consEscape = GetValEscape(conditional.Consequence); 4442return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4447return GetValEscape(coalescingOp.LeftOperand) 4448.Intersect(GetValEscape(coalescingOp.RightOperand)); 4461return GetValEscape(fieldAccess.ReceiverOpt); 4560escape = escape.Intersect(GetValEscape(initializerOpt)); 4575escape = escape.Intersect(GetValEscape(initializerOpt)); 4584return GetValEscape(withExpression.Receiver) 4585.Intersect(GetValEscape(withExpression.InitializerExpression)); 4596return GetValEscape(unaryOperator.Operand); 4633return GetValEscape(conversion.Operand); 4637return GetValEscape(((BoundAssignmentOperator)expr).Right); 4641return GetValEscape(nullCoalescingAssignment.LeftOperand) 4642.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4663return GetValEscape(increment.Operand); 4680return GetValEscape(compound.Left); 4684return GetValEscape(compound.Left) 4685.Intersect(GetValEscape(compound.Right)); 4697return GetValEscape(binary.Left) 4698.Intersect(GetValEscape(binary.Right)); 4703return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4704.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4714return GetValEscape(((BoundQueryClause)expr).Value); 4717return GetValEscape(((BoundRangeVariable)expr).Value); 4820return GetValEscape(expr.CollectionCreation); 4843narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4857: GetValEscape(expr)); 4888: GetValEscape(assignment.Right); 4906result = GetValEscape(expr); 4960: GetValEscape(escapeValue.Argument); 4990result = result.Intersect(GetValEscape(expression)); 5011Debug.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 (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);