43 references to CheckValEscape
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder.ValueChecks.cs (41)
1798
return
CheckValEscape
(node, fieldAccess.ReceiverOpt, escapeTo, checkingReceiver: true, diagnostics);
2509
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics);
2534
return
CheckValEscape
(receiver.Syntax, receiver, escapeTo, false, diagnostics);
2574
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics);
2611
:
CheckValEscape
(argument.Syntax, argument, escapeTo, checkingReceiver: false, diagnostics);
3223
if (!hasMixingError && !
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics))
3278
:
CheckValEscape
(fromArg.Syntax, fromArg, toArgEscape, checkingReceiver: false, diagnostics);
3676
CheckValEscape
(expr.Syntax, expr, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5057
return
CheckValEscape
(underlyingReceiver.Syntax, underlyingReceiver, escapeTo, checkingReceiver, diagnostics);
5072
CheckValEscape
(conditional.Consequence.Syntax, conditional.Consequence, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5073
CheckValEscape
(conditional.Alternative.Syntax, conditional.Alternative, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5080
var consValid =
CheckValEscape
(conditional.Consequence.Syntax, conditional.Consequence, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5089
return
CheckValEscape
(conditional.Alternative.Syntax, conditional.Alternative, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5094
return
CheckValEscape
(coalescingOp.LeftOperand.Syntax, coalescingOp.LeftOperand, escapeTo, checkingReceiver, diagnostics) &&
5095
CheckValEscape
(coalescingOp.RightOperand.Syntax, coalescingOp.RightOperand, escapeTo, checkingReceiver, diagnostics);
5108
return
CheckValEscape
(node, fieldAccess.ReceiverOpt, escapeTo, true, diagnostics);
5243
CheckValEscape
(
5263
CheckValEscape
(
5277
var escape =
CheckValEscape
(node, withExpr.Receiver, escapeTo, checkingReceiver: false, diagnostics);
5280
escape = escape &&
CheckValEscape
(initializerExpr.Syntax, initializerExpr, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5298
return
CheckValEscape
(node, unary.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5352
return
CheckValEscape
(node, conversion.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5357
return
CheckValEscape
(node, assignment.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5361
return
CheckValEscape
(node, nullCoalescingAssignment.LeftOperand, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5362
CheckValEscape
(node, nullCoalescingAssignment.RightOperand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5387
return
CheckValEscape
(node, increment.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5406
return
CheckValEscape
(compound.Left.Syntax, compound.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5410
return
CheckValEscape
(compound.Left.Syntax, compound.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5411
CheckValEscape
(compound.Right.Syntax, compound.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5432
return
CheckValEscape
(binary.Left.Syntax, binary.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5433
CheckValEscape
(binary.Right.Syntax, binary.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5438
if (range.LeftOperandOpt is { } left && !
CheckValEscape
(left.Syntax, left, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5443
return !(range.RightOperandOpt is { } right && !
CheckValEscape
(right.Syntax, right, escapeTo, checkingReceiver: false, diagnostics: diagnostics));
5458
return
CheckValEscape
(clauseValue.Syntax, clauseValue, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5462
return
CheckValEscape
(variableValue.Syntax, variableValue, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5474
return
CheckValEscape
(accessedExpression.Syntax, accessedExpression, escapeTo, checkingReceiver, diagnostics);
5478
return
CheckValEscape
(operandExpression.Syntax, operandExpression, escapeTo, checkingReceiver, diagnostics);
5493
if (!
CheckValEscape
(result.Syntax, result, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5739
if (!
CheckValEscape
(element.Syntax, element, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5766
else if (!
CheckValEscape
(expr.Syntax, expr, escapeTo, checkingReceiver: false, diagnostics))
5807
bool result =
CheckValEscape
(expression.Syntax, data.Construction, escapeTo, checkingReceiver: false, diagnostics);
Binder\Binder_Operators.cs (2)
5986
CheckValEscape
(falseExpr.Syntax, falseExpr, whenTrueEscape, checkingReceiver: false, diagnostics: diagnostics);
5988
CheckValEscape
(trueExpr.Syntax, trueExpr, whenFalseEscape, checkingReceiver: false, diagnostics: diagnostics);