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