31 references to ExpressionOpt
Microsoft.CodeAnalysis.VisualBasic (31)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
1518VisitRvalue(node.ExpressionOpt)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1994Dim functionLocal = TryCast(node.ExpressionOpt, BoundLocal)
Binding\Binder_Lambda.vb (5)
371If node.ExpressionOpt IsNot Nothing Then 373If node.ExpressionOpt.Kind = BoundKind.Local Then 374Dim local As LocalSymbol = DirectCast(node.ExpressionOpt, BoundLocal).LocalSymbol 384Dim returnRelaxation As ConversionKind = Conversions.DetermineDelegateRelaxationLevelForLambdaReturn(node.ExpressionOpt, _useSiteDiagnostics) 1059Dim expr As BoundExpression = node.ExpressionOpt
BoundTree\BoundReturnStatement.vb (2)
19If ExpressionOpt IsNot Nothing AndAlso Not HasErrors Then 21ExpressionOpt.AssertRValue()
CodeGen\EmitStatement.vb (2)
900Me.EmitExpression(boundReturnStatement.ExpressionOpt, True) 901_builder.EmitRet(boundReturnStatement.ExpressionOpt Is Nothing)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (1)
1149Dim expressionOpt = TryCast(Me.Visit(node.ExpressionOpt), BoundExpression)
Generated\BoundNodes.xml.Generated.vb (4)
2822If expressionOpt IsNot Me.ExpressionOpt OrElse functionLocalOpt IsNot Me.FunctionLocalOpt OrElse exitLabelOpt IsNot Me.ExitLabelOpt Then 11361Me.Visit(node.ExpressionOpt) 12358Dim expressionOpt As BoundExpression = DirectCast(Me.Visit(node.ExpressionOpt), BoundExpression) 13561New TreeDumperNode("expressionOpt", Nothing, new TreeDumperNode() {Visit(node.ExpressionOpt, Nothing)}),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Statements.vb (1)
24Dim expression As BoundExpression = rewritten.ExpressionOpt
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (2)
215DirectCast(block.Statements(1), BoundReturnStatement).ExpressionOpt Is Nothing) OrElse 224If (DirectCast(stmt, BoundReturnStatement)).ExpressionOpt IsNot Nothing Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (2)
141DirectCast(block.Statements(1), BoundReturnStatement).ExpressionOpt Is Nothing) OrElse 157Dim expression As BoundExpression = (DirectCast(stmt, BoundReturnStatement)).ExpressionOpt
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
341If original.ExpressionOpt IsNot Nothing Then
Lowering\Instrumentation\Instrumenter.vb (3)
73(original.ExpressionOpt IsNot Nothing AndAlso 74Not original.ExpressionOpt.WasCompilerGenerated AndAlso 75original.Syntax Is original.ExpressionOpt.Syntax))
Lowering\LocalRewriter\LocalRewriter_Return.vb (6)
23rewritten = RegisterUnstructuredExceptionHandlingResumeTarget(node.Syntax, rewritten, canThrow:=node.ExpressionOpt IsNot Nothing) 27If Instrument(node, rewritten) OrElse (node.ExpressionOpt IsNot Nothing AndAlso Instrument(node.ExpressionOpt)) Then 43node = node.Update(node.ExpressionOpt, Nothing, Nothing) 46If node.ExpressionOpt IsNot Nothing Then 76node.ExpressionOpt,