28 references to InitializerOpt
Microsoft.CodeAnalysis.VisualBasic (28)
Analysis\FlowAnalysis\AbstractFlowPass.vb (2)
1058If node.InitializerOpt IsNot Nothing Then 1059VisitRvalue(node.InitializerOpt) ' analyze the expression
Analysis\FlowAnalysis\ControlFlowPass.vb (1)
87If decl.InitializerOpt IsNot Nothing Then
Analysis\FlowAnalysis\DataFlowPass.vb (7)
1343Debug.Assert(local.InitializerOpt Is value OrElse local.InitializedByAsNew) 1607Dim variableIsUsedDirectlyAndIsAlwaysAssigned = DeclaredVariableIsAlwaysAssignedBeforeInitializer(node.Syntax.Parent, node.InitializerOpt, placeholder) 1619Assign(node, node.InitializerOpt, 1622TreatTheLocalAsAssignedWithinTheLambda(local, node.InitializerOpt)) 1624If node.InitializerOpt IsNot Nothing OrElse node.InitializedByAsNew Then 1672If node.InitializerOpt IsNot Nothing OrElse node.InitializedByAsNew Then 1673Assign(node, node.InitializerOpt)
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (1)
199Assign(node, node.InitializerOpt)
Binding\Binder_Statements.vb (2)
1069Dim asNewInitializer = var0.InitializerOpt 4486Dim initializerExpression = boundLocalDeclaration.InitializerOpt
BoundTree\BoundLocalDeclaration.vb (8)
32If InitializerOpt IsNot Nothing Then 34InitializerOpt.AssertRValue() 39If InitializerOpt.Type Is Nothing Then 40Debug.Assert(LocalSymbol.IsConst AndAlso InitializerOpt.IsStrictNothingLiteral()) 42Debug.Assert(LocalSymbol.Type.IsSameTypeIgnoringAll(InitializerOpt.Type) OrElse InitializerOpt.Type.IsErrorType() OrElse 44InitializerOpt.IsConstant AndAlso InitializerOpt.ConstantValueOpt.IsNothing))
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
497Dim initializer As BoundExpression = DirectCast(statement, BoundLocalDeclaration).InitializerOpt
Lowering\LocalRewriter\LocalRewriter_AsNewLocalDeclarations.vb (1)
21Debug.Assert(localDeclaration.InitializerOpt Is Nothing)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (4)
18Dim initializerOpt As BoundExpression = node.InitializerOpt 87Debug.Assert((node.InitializerOpt Is Nothing AndAlso node.InitializedByAsNew) OrElse 88(DirectCast(node.InitializerOpt, BoundObjectCreationExpressionBase).InitializerOpt.Kind = BoundKind.ObjectInitializerExpression AndAlso 89Not DirectCast(DirectCast(node.InitializerOpt, BoundObjectCreationExpressionBase).InitializerOpt,
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
101localVariableDeclaration.InitializerOpt,