1 write to ExpressionOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3574
this.
ExpressionOpt
= expressionOpt;
35 references to ExpressionOpt
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder_Query.cs (1)
683
var i1 = r1 != null ? r1.
ExpressionOpt
as BoundCall : null;
Binder\RefSafetyAnalysis.cs (1)
521
if (node.
ExpressionOpt
is { Type: { } } expr)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
3295
if (returnStmt.
ExpressionOpt
!= null && ExpressionMatchExactly(returnStmt.
ExpressionOpt
, y, ref useSiteInfo))
3316
if (r.
ExpressionOpt
== null || !ExpressionMatchExactly(r.
ExpressionOpt
, y, ref useSiteInfo))
BoundTree\BoundNode_Source.cs (1)
151
var value = returnStatement.
ExpressionOpt
;
BoundTree\UnboundLambda.cs (2)
376
var expression = node.
ExpressionOpt
;
1571
statements[0] is BoundReturnStatement { RefKind: Microsoft.CodeAnalysis.RefKind.None,
ExpressionOpt
: BoundExpression expr })
CodeGen\EmitStatement.cs (1)
864
var expressionOpt = boundReturnStatement.
ExpressionOpt
;
CodeGen\Optimizer.cs (1)
1797
BoundExpression expressionOpt = (BoundExpression)this.Visit(node.
ExpressionOpt
);
FlowAnalysis\AbstractFlowPass.cs (2)
2026
VisitRvalue(node.
ExpressionOpt
, isKnownToBeAnLvalue: node.RefKind != RefKind.None);
2031
WriteArgument(node.
ExpressionOpt
, node.RefKind, method: null);
FlowAnalysis\NullableWalker.cs (4)
1064
if (returnStatement.
ExpressionOpt
is { ConstantValueOpt: { IsBoolean: true, BooleanValue: bool value } })
1222
if (returnStatement.
ExpressionOpt
is { ConstantValueOpt: { IsBoolean: true, BooleanValue: bool value } })
1243
else if (returnStatement.
ExpressionOpt
is { ConstantValueOpt: { IsBoolean: true, BooleanValue: bool value } })
2943
var expr = node.
ExpressionOpt
;
Generated\BoundNodes.xml.Generated.cs (4)
3587
if (refKind != this.RefKind || expressionOpt != this.
ExpressionOpt
|| @checked != this.Checked)
10153
this.Visit(node.
ExpressionOpt
);
11363
BoundExpression? expressionOpt = (BoundExpression?)this.Visit(node.
ExpressionOpt
);
15808
new TreeDumperNode("expressionOpt", null, new TreeDumperNode[] { Visit(node.
ExpressionOpt
, null) }),
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
379
node.
ExpressionOpt
,
387
var returnExpr = (BoundExpression)(this.Visit(node.
ExpressionOpt
));
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
658
if (node.
ExpressionOpt
!= null)
662
F.Assignment(F.Local(_exprRetValue), (BoundExpression)Visit(node.
ExpressionOpt
)),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
141
var result = Visit(((BoundReturnStatement)stmt).
ExpressionOpt
);
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (4)
414
returnStatement.
ExpressionOpt
!= null &&
415
returnStatement.
ExpressionOpt
.Syntax != null)
417
Debug.Assert(returnStatement.
ExpressionOpt
.Syntax.Parent != null);
419
SyntaxKind parentKind = returnStatement.
ExpressionOpt
.Syntax.Parent.Kind();
Lowering\Instrumentation\DebugInfoInjector.cs (1)
406
if (original.WasCompilerGenerated && original.
ExpressionOpt
== null && original.Syntax.Kind() == SyntaxKind.Block)
Lowering\LocalRewriter\LocalRewriter_ReturnStatement.cs (1)
27
(node.
ExpressionOpt
!= null ?
Lowering\SpillSequenceSpiller.cs (1)
696
var expression = VisitExpression(ref builder, node.
ExpressionOpt
);
Operations\CSharpOperationFactory.cs (2)
1072
ExpressionOpt
?.Kind == BoundKind.BadExpression);
2058
IOperation? returnedValue = Create(boundReturnStatement.
ExpressionOpt
);