1 write to RefKind
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3573
this.
RefKind
= refKind;
13 references to RefKind
Microsoft.CodeAnalysis.CSharp (13)
Binder\RefSafetyAnalysis.cs (1)
523
ValidateEscape(expr, SafeContext.ReturnOnly, node.
RefKind
!= RefKind.None, _diagnostics);
BoundTree\UnboundLambda.cs (1)
1571
statements[0] is BoundReturnStatement {
RefKind
: Microsoft.CodeAnalysis.RefKind.None, ExpressionOpt: BoundExpression expr })
CodeGen\EmitStatement.cs (1)
865
if (boundReturnStatement.
RefKind
== RefKind.None)
CodeGen\Optimizer.cs (1)
1802
return node.Update(node.
RefKind
, expressionOpt, @checked: node.Checked);
FlowAnalysis\AbstractFlowPass.cs (3)
2026
VisitRvalue(node.ExpressionOpt, isKnownToBeAnLvalue: node.
RefKind
!= RefKind.None);
2029
if (node.
RefKind
!= RefKind.None)
2031
WriteArgument(node.ExpressionOpt, node.
RefKind
, method: null);
FlowAnalysis\NullableWalker.cs (2)
2895
if (node.
RefKind
== RefKind.None &&
2904
if (node.
RefKind
== RefKind.None)
Generated\BoundNodes.xml.Generated.cs (3)
3587
if (refKind != this.
RefKind
|| expressionOpt != this.ExpressionOpt || @checked != this.Checked)
11328
return node.Update(node.
RefKind
, expressionOpt, node.Checked);
15771
new TreeDumperNode("refKind", node.
RefKind
, null),
Lowering\SpillSequenceSpiller.cs (1)
697
return UpdateStatement(builder, node.Update(node.
RefKind
, expression, @checked: node.Checked));