1 write to ExpressionOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4128this.ExpressionOpt = expressionOpt;
17 references to ExpressionOpt
Microsoft.CodeAnalysis.CSharp (17)
Binder\RefSafetyAnalysis.cs (2)
344this.Visit(node.ExpressionOpt); 349SafeContext valEscapeScope = node.ExpressionOpt is { } expr
FlowAnalysis\AbstractFlowPass.cs (2)
3384if (node.ExpressionOpt != null) 3386VisitRvalue(node.ExpressionOpt);
Generated\BoundNodes.xml.Generated.cs (5)
4146if (locals != this.Locals || declarationsOpt != this.DeclarationsOpt || expressionOpt != this.ExpressionOpt || body != this.Body || awaitOpt != this.AwaitOpt || patternDisposeInfoOpt != this.PatternDisposeInfoOpt) 10196this.Visit(node.ExpressionOpt); 11409BoundExpression? expressionOpt = (BoundExpression?)this.Visit(node.ExpressionOpt); 13448BoundExpression? expressionOpt = (BoundExpression?)this.Visit(node.ExpressionOpt); 15899new 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!);