1 write to ExpressionOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4127this.ExpressionOpt = expressionOpt;
17 references to ExpressionOpt
Microsoft.CodeAnalysis.CSharp (17)
Binder\RefSafetyAnalysis.cs (2)
344this.Visit(node.ExpressionOpt); 349uint valEscapeScope = node.ExpressionOpt is { } expr
FlowAnalysis\AbstractFlowPass.cs (2)
3384if (node.ExpressionOpt != null) 3386VisitRvalue(node.ExpressionOpt);
Generated\BoundNodes.xml.Generated.cs (5)
4145if (locals != this.Locals || declarationsOpt != this.DeclarationsOpt || expressionOpt != this.ExpressionOpt || body != this.Body || awaitOpt != this.AwaitOpt || patternDisposeInfoOpt != this.PatternDisposeInfoOpt) 10195this.Visit(node.ExpressionOpt); 11408BoundExpression? expressionOpt = (BoundExpression?)this.Visit(node.ExpressionOpt); 13447BoundExpression? expressionOpt = (BoundExpression?)this.Visit(node.ExpressionOpt); 15898new TreeDumperNode("expressionOpt", null, new TreeDumperNode[] { Visit(node.ExpressionOpt, null) }),
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
544syntaxForSpan = ((BoundNode?)usingStatement.ExpressionOpt ?? usingStatement.DeclarationsOpt)!.Syntax;
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (3)
44if (node.ExpressionOpt != null) 110Debug.Assert(node.ExpressionOpt != null); 127BoundExpression rewrittenExpression = VisitExpression(node.ExpressionOpt);
Lowering\MethodToClassRewriter.cs (1)
204var expression = (BoundExpression?)this.Visit(node.ExpressionOpt);
Operations\CSharpOperationFactory.cs (3)
2031Debug.Assert((boundUsingStatement.DeclarationsOpt == null) != (boundUsingStatement.ExpressionOpt == null)); 2032Debug.Assert(boundUsingStatement.ExpressionOpt is object || boundUsingStatement.Locals.Length > 0); 2033IOperation resources = Create(boundUsingStatement.DeclarationsOpt ?? (BoundNode)boundUsingStatement.ExpressionOpt!);