44 references to CheckValEscape
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder_Operators.cs (2)
6063
CheckValEscape
(falseExpr.Syntax, falseExpr, whenTrueEscape, checkingReceiver: false, diagnostics: diagnostics);
6065
CheckValEscape
(trueExpr.Syntax, trueExpr, whenFalseEscape, checkingReceiver: false, diagnostics: diagnostics);
Binder\Binder.ValueChecks.cs (42)
1797
return
CheckValEscape
(node, fieldAccess.ReceiverOpt, escapeTo, checkingReceiver: true, diagnostics);
2519
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics);
2544
return
CheckValEscape
(receiver.Syntax, receiver, escapeTo, false, diagnostics);
2584
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics);
2621
:
CheckValEscape
(argument.Syntax, argument, escapeTo, checkingReceiver: false, diagnostics);
3208
if (!hasMixingError && !
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics))
3263
:
CheckValEscape
(fromArg.Syntax, fromArg, toArgEscape, checkingReceiver: false, diagnostics);
3664
CheckValEscape
(expr.Syntax, expr, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5105
return
CheckValEscape
(underlyingReceiver.Syntax, underlyingReceiver, escapeTo, checkingReceiver, diagnostics);
5120
CheckValEscape
(conditional.Consequence.Syntax, conditional.Consequence, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5121
CheckValEscape
(conditional.Alternative.Syntax, conditional.Alternative, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5128
var consValid =
CheckValEscape
(conditional.Consequence.Syntax, conditional.Consequence, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5137
return
CheckValEscape
(conditional.Alternative.Syntax, conditional.Alternative, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5142
return
CheckValEscape
(coalescingOp.LeftOperand.Syntax, coalescingOp.LeftOperand, escapeTo, checkingReceiver, diagnostics) &&
5143
CheckValEscape
(coalescingOp.RightOperand.Syntax, coalescingOp.RightOperand, escapeTo, checkingReceiver, diagnostics);
5156
return
CheckValEscape
(node, fieldAccess.ReceiverOpt, escapeTo, true, diagnostics);
5160
return
CheckValEscape
(node, ((BoundImplicitIndexerReceiverPlaceholder)expr).Receiver, escapeTo, checkingReceiver, diagnostics);
5295
CheckValEscape
(
5315
CheckValEscape
(
5329
var escape =
CheckValEscape
(node, withExpr.Receiver, escapeTo, checkingReceiver: false, diagnostics);
5332
escape = escape &&
CheckValEscape
(initializerExpr.Syntax, initializerExpr, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5350
return
CheckValEscape
(node, unary.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5405
return
CheckValEscape
(node, conversion.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5410
return
CheckValEscape
(node, assignment.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5414
return
CheckValEscape
(node, nullCoalescingAssignment.LeftOperand, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5415
CheckValEscape
(node, nullCoalescingAssignment.RightOperand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5440
return
CheckValEscape
(node, increment.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5459
return
CheckValEscape
(compound.Left.Syntax, compound.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5463
return
CheckValEscape
(compound.Left.Syntax, compound.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5464
CheckValEscape
(compound.Right.Syntax, compound.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5485
return
CheckValEscape
(binary.Left.Syntax, binary.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5486
CheckValEscape
(binary.Right.Syntax, binary.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5491
if (range.LeftOperandOpt is { } left && !
CheckValEscape
(left.Syntax, left, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5496
return !(range.RightOperandOpt is { } right && !
CheckValEscape
(right.Syntax, right, escapeTo, checkingReceiver: false, diagnostics: diagnostics));
5511
return
CheckValEscape
(clauseValue.Syntax, clauseValue, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5515
return
CheckValEscape
(variableValue.Syntax, variableValue, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5527
return
CheckValEscape
(accessedExpression.Syntax, accessedExpression, escapeTo, checkingReceiver, diagnostics);
5531
return
CheckValEscape
(operandExpression.Syntax, operandExpression, escapeTo, checkingReceiver, diagnostics);
5546
if (!
CheckValEscape
(result.Syntax, result, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5792
if (!
CheckValEscape
(element.Syntax, element, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5819
else if (!
CheckValEscape
(expr.Syntax, expr, escapeTo, checkingReceiver: false, diagnostics))
5860
bool result =
CheckValEscape
(expression.Syntax, data.Construction, escapeTo, checkingReceiver: false, diagnostics);