43 references to CheckValEscape
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder.ValueChecks.cs (41)
1815
return
CheckValEscape
(node, fieldAccess.ReceiverOpt, escapeTo, checkingReceiver: true, diagnostics);
2536
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics);
2561
return
CheckValEscape
(receiver.Syntax, receiver, escapeTo, false, diagnostics);
2601
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics);
2638
:
CheckValEscape
(argument.Syntax, argument, escapeTo, checkingReceiver: false, diagnostics);
3250
if (!hasMixingError && !
CheckValEscape
(argument.Syntax, argument, escapeTo, false, diagnostics))
3305
:
CheckValEscape
(fromArg.Syntax, fromArg, toArgEscape, checkingReceiver: false, diagnostics);
3703
CheckValEscape
(expr.Syntax, expr, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5094
return
CheckValEscape
(underlyingReceiver.Syntax, underlyingReceiver, escapeTo, checkingReceiver, diagnostics);
5109
CheckValEscape
(conditional.Consequence.Syntax, conditional.Consequence, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5110
CheckValEscape
(conditional.Alternative.Syntax, conditional.Alternative, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5117
var consValid =
CheckValEscape
(conditional.Consequence.Syntax, conditional.Consequence, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5126
return
CheckValEscape
(conditional.Alternative.Syntax, conditional.Alternative, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5131
return
CheckValEscape
(coalescingOp.LeftOperand.Syntax, coalescingOp.LeftOperand, escapeTo, checkingReceiver, diagnostics) &&
5132
CheckValEscape
(coalescingOp.RightOperand.Syntax, coalescingOp.RightOperand, escapeTo, checkingReceiver, diagnostics);
5145
return
CheckValEscape
(node, fieldAccess.ReceiverOpt, escapeTo, true, diagnostics);
5280
CheckValEscape
(
5300
CheckValEscape
(
5314
var escape =
CheckValEscape
(node, withExpr.Receiver, escapeTo, checkingReceiver: false, diagnostics);
5317
escape = escape &&
CheckValEscape
(initializerExpr.Syntax, initializerExpr, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5335
return
CheckValEscape
(node, unary.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5390
return
CheckValEscape
(node, conversion.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5395
return
CheckValEscape
(node, assignment.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5399
return
CheckValEscape
(node, nullCoalescingAssignment.LeftOperand, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5400
CheckValEscape
(node, nullCoalescingAssignment.RightOperand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5425
return
CheckValEscape
(node, increment.Operand, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5444
return
CheckValEscape
(compound.Left.Syntax, compound.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5448
return
CheckValEscape
(compound.Left.Syntax, compound.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5449
CheckValEscape
(compound.Right.Syntax, compound.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5470
return
CheckValEscape
(binary.Left.Syntax, binary.Left, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
5471
CheckValEscape
(binary.Right.Syntax, binary.Right, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5476
if (range.LeftOperandOpt is { } left && !
CheckValEscape
(left.Syntax, left, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5481
return !(range.RightOperandOpt is { } right && !
CheckValEscape
(right.Syntax, right, escapeTo, checkingReceiver: false, diagnostics: diagnostics));
5496
return
CheckValEscape
(clauseValue.Syntax, clauseValue, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5500
return
CheckValEscape
(variableValue.Syntax, variableValue, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5512
return
CheckValEscape
(accessedExpression.Syntax, accessedExpression, escapeTo, checkingReceiver, diagnostics);
5516
return
CheckValEscape
(operandExpression.Syntax, operandExpression, escapeTo, checkingReceiver, diagnostics);
5531
if (!
CheckValEscape
(result.Syntax, result, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5777
if (!
CheckValEscape
(element.Syntax, element, escapeTo, checkingReceiver: false, diagnostics: diagnostics))
5804
else if (!
CheckValEscape
(expr.Syntax, expr, escapeTo, checkingReceiver: false, diagnostics))
5845
bool result =
CheckValEscape
(expression.Syntax, data.Construction, escapeTo, checkingReceiver: false, diagnostics);
Binder\Binder_Operators.cs (2)
6036
CheckValEscape
(falseExpr.Syntax, falseExpr, whenTrueEscape, checkingReceiver: false, diagnostics: diagnostics);
6038
CheckValEscape
(trueExpr.Syntax, trueExpr, whenFalseEscape, checkingReceiver: false, diagnostics: diagnostics);