43 references to CheckValEscape
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder.ValueChecks.cs (41)
1814
return
CheckValEscape
(node, fieldAccess.ReceiverOpt, escapeTo, checkingReceiver: true, diagnostics);
2525
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics);
2550
return
CheckValEscape
(receiver.Syntax, receiver, escapeTo, false, diagnostics);
2590
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics);
2627
:
CheckValEscape
(argument.Syntax, argument, escapeTo, checkingReceiver: false, diagnostics);
3239
if (!hasMixingError && !
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics))
3294
:
CheckValEscape
(fromArg.Syntax, fromArg, toArgEscape, checkingReceiver: false, diagnostics);
3692
CheckValEscape
(expr.Syntax, expr, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5073
return
CheckValEscape
(underlyingReceiver.Syntax, underlyingReceiver, escapeTo, checkingReceiver, diagnostics);
5088
CheckValEscape
(conditional.Consequence.Syntax, conditional.Consequence, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5089
CheckValEscape
(conditional.Alternative.Syntax, conditional.Alternative, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5096
var consValid =
CheckValEscape
(conditional.Consequence.Syntax, conditional.Consequence, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5105
return
CheckValEscape
(conditional.Alternative.Syntax, conditional.Alternative, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5110
return
CheckValEscape
(coalescingOp.LeftOperand.Syntax, coalescingOp.LeftOperand, escapeTo, checkingReceiver, diagnostics) &&
5111
CheckValEscape
(coalescingOp.RightOperand.Syntax, coalescingOp.RightOperand, escapeTo, checkingReceiver, diagnostics);
5124
return
CheckValEscape
(node, fieldAccess.ReceiverOpt, escapeTo, true, diagnostics);
5259
CheckValEscape
(
5279
CheckValEscape
(
5293
var escape =
CheckValEscape
(node, withExpr.Receiver, escapeTo, checkingReceiver: false, diagnostics);
5296
escape = escape &&
CheckValEscape
(initializerExpr.Syntax, initializerExpr, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5314
return
CheckValEscape
(node, unary.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5368
return
CheckValEscape
(node, conversion.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5373
return
CheckValEscape
(node, assignment.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5377
return
CheckValEscape
(node, nullCoalescingAssignment.LeftOperand, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5378
CheckValEscape
(node, nullCoalescingAssignment.RightOperand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5403
return
CheckValEscape
(node, increment.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5422
return
CheckValEscape
(compound.Left.Syntax, compound.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5426
return
CheckValEscape
(compound.Left.Syntax, compound.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5427
CheckValEscape
(compound.Right.Syntax, compound.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5448
return
CheckValEscape
(binary.Left.Syntax, binary.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5449
CheckValEscape
(binary.Right.Syntax, binary.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5454
if (range.LeftOperandOpt is { } left && !
CheckValEscape
(left.Syntax, left, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5459
return !(range.RightOperandOpt is { } right && !
CheckValEscape
(right.Syntax, right, escapeTo, checkingReceiver: false, diagnostics: diagnostics));
5474
return
CheckValEscape
(clauseValue.Syntax, clauseValue, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5478
return
CheckValEscape
(variableValue.Syntax, variableValue, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5490
return
CheckValEscape
(accessedExpression.Syntax, accessedExpression, escapeTo, checkingReceiver, diagnostics);
5494
return
CheckValEscape
(operandExpression.Syntax, operandExpression, escapeTo, checkingReceiver, diagnostics);
5509
if (!
CheckValEscape
(result.Syntax, result, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5755
if (!
CheckValEscape
(element.Syntax, element, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5782
else if (!
CheckValEscape
(expr.Syntax, expr, escapeTo, checkingReceiver: false, diagnostics))
5823
bool result =
CheckValEscape
(expression.Syntax, data.Construction, escapeTo, checkingReceiver: false, diagnostics);
Binder\Binder_Operators.cs (2)
5987
CheckValEscape
(falseExpr.Syntax, falseExpr, whenTrueEscape, checkingReceiver: false, diagnostics: diagnostics);
5989
CheckValEscape
(trueExpr.Syntax, trueExpr, whenFalseEscape, checkingReceiver: false, diagnostics: diagnostics);