63 references to BoundArrayInitialization
Microsoft.CodeAnalysis.VisualBasic (63)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
2318
Public Overrides Function VisitArrayInitialization(node As
BoundArrayInitialization
) As BoundNode
Binding\Binder_Attributes.vb (1)
577
Dim arrayInitialization As
BoundArrayInitialization
= arrayCreation.InitializerOpt
Binding\Binder_Expressions.vb (10)
1556
Dim arrayInitialization As
BoundArrayInitialization
1636
Private Function ReclassifyArrayInitialization(arrayInitialization As
BoundArrayInitialization
, elementType As TypeSymbol, diagnostics As BindingDiagnosticBag) As
BoundArrayInitialization
1642
expr = ReclassifyArrayInitialization(DirectCast(expr,
BoundArrayInitialization
), elementType, diagnostics)
1653
Private Function ReclassifyEmptyArrayInitialization(arrayLiteral As BoundArrayLiteral, rank As Integer) As
BoundArrayInitialization
1655
Dim arrayInitialization As
BoundArrayInitialization
= arrayLiteral.Initializer
4180
diagnostics As BindingDiagnosticBag) As
BoundArrayInitialization
4202
diagnostics As BindingDiagnosticBag) As
BoundArrayInitialization
4230
diagnostics As BindingDiagnosticBag) As
BoundArrayInitialization
4280
Dim init As
BoundArrayInitialization
= Nothing
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (1)
362
Dim boundArrayInitializer As
BoundArrayInitialization
= New BoundArrayInitialization(syntax, boundFieldAccessArray.AsImmutableOrNull(),
BoundTree\BoundArrayCreation.vb (4)
13
Public Sub New(syntax As SyntaxNode, bounds As ImmutableArray(Of BoundExpression), initializerOpt As
BoundArrayInitialization
, type As TypeSymbol, Optional hasErrors As Boolean = False)
17
Public Sub New(syntax As SyntaxNode, bounds As ImmutableArray(Of BoundExpression), initializerOpt As
BoundArrayInitialization
, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol, Optional hasErrors As Boolean = False)
34
Private Sub ValidateInitializer(initializer As
BoundArrayInitialization
, elementType As TypeSymbol)
37
ValidateInitializer(DirectCast(item,
BoundArrayInitialization
), elementType)
CodeGen\EmitArrayInitializer.vb (5)
37
Private Sub EmitArrayInitializers(arrayType As ArrayTypeSymbol, inits As
BoundArrayInitialization
)
117
indices.Push(New IndexDesc(i, DirectCast(inits(i),
BoundArrayInitialization
).Initializers))
148
indices.Push(New IndexDesc(i, DirectCast(inits(i),
BoundArrayInitialization
).Initializers))
238
Dim asArrayInit = TryCast(init,
BoundArrayInitialization
)
273
SerializeArrayRecursive(bw, DirectCast(init,
BoundArrayInitialization
).Initializers)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (1)
1120
Public Overrides Function VisitArrayInitialization(node As
BoundArrayInitialization
) As BoundNode
Generated\BoundNodes.xml.Generated.vb (19)
3956
Public Sub New(syntax As SyntaxNode, isParamArrayArgument As Boolean, bounds As ImmutableArray(Of BoundExpression), initializerOpt As
BoundArrayInitialization
, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol, Optional hasErrors As Boolean = False)
3989
Private ReadOnly _InitializerOpt As
BoundArrayInitialization
3990
Public ReadOnly Property InitializerOpt As
BoundArrayInitialization
4015
Public Function Update(isParamArrayArgument As Boolean, bounds As ImmutableArray(Of BoundExpression), initializerOpt As
BoundArrayInitialization
, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol) As BoundArrayCreation
4028
Public Sub New(syntax As SyntaxNode, hasDominantType As Boolean, numberOfCandidates As Integer, inferredType As ArrayTypeSymbol, bounds As ImmutableArray(Of BoundExpression), initializer As
BoundArrayInitialization
, binder As Binder, Optional hasErrors As Boolean = False)
4073
Private ReadOnly _Initializer As
BoundArrayInitialization
4074
Public ReadOnly Property Initializer As
BoundArrayInitialization
4092
Public Function Update(hasDominantType As Boolean, numberOfCandidates As Integer, inferredType As ArrayTypeSymbol, bounds As ImmutableArray(Of BoundExpression), initializer As
BoundArrayInitialization
, binder As Binder) As BoundArrayLiteral
4126
Public Function Update(initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As
BoundArrayInitialization
9493
Return VisitArrayInitialization(CType(node,
BoundArrayInitialization
), arg)
9999
Public Overridable Function VisitArrayInitialization(node As
BoundArrayInitialization
, arg As A) As R
10702
Public Overridable Function VisitArrayInitialization(node As
BoundArrayInitialization
) As BoundNode
11492
Public Overrides Function VisitArrayInitialization(node As
BoundArrayInitialization
) As BoundNode
12501
Dim initializerOpt As
BoundArrayInitialization
= DirectCast(Me.Visit(node.InitializerOpt),
BoundArrayInitialization
)
12509
Dim initializer As
BoundArrayInitialization
= DirectCast(Me.Visit(node.Initializer),
BoundArrayInitialization
)
12514
Public Overrides Function VisitArrayInitialization(node As
BoundArrayInitialization
) As BoundNode
13775
Public Overrides Function VisitArrayInitialization(node As
BoundArrayInitialization
, arg As Object) As TreeDumperNode
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (8)
819
Dim rewrittenInitializer As
BoundArrayInitialization
= DirectCast(Me.Visit(node.InitializerOpt),
BoundArrayInitialization
)
829
DirectCast(rewrittenInitializer,
BoundArrayInitialization
),
847
DirectCast(rewrittenInitializer,
BoundArrayInitialization
),
854
Private Function VisitArrayInitializationParts(node As
BoundArrayInitialization
) As BoundExpression
866
DirectCast(part,
BoundArrayInitialization
)),
874
Public Overrides Function VisitArrayInitialization(node As
BoundArrayInitialization
) As BoundNode
879
Return VisitArrayInitializationParts(DirectCast(node,
BoundArrayInitialization
))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (4)
48
Private Shared Function ArrayInitializerNeedsSpill(node As
BoundArrayInitialization
) As Boolean
55
If ArrayInitializerNeedsSpill(DirectCast(initializer,
BoundArrayInitialization
)) Then
162
Dim nestedInitializer = DirectCast(arg,
BoundArrayInitialization
)
396
Dim arrayInit = DirectCast(expr,
BoundArrayInitialization
)
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
181
Dim initializer As
BoundArrayInitialization
= node.InitializerOpt
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
737
Dim initializer As
BoundArrayInitialization
= node.InitializerOpt
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (1)
134
Dim initializer As
BoundArrayInitialization
= args.InitializerOpt
Lowering\SyntheticBoundNodeFactory.vb (1)
1044
Dim arrayInitialization As
BoundArrayInitialization
= If(Not elements.IsDefaultOrEmpty, New BoundArrayInitialization(_syntax, elements, arrayType), Nothing)
Lowering\UseTwiceRewriter.vb (1)
527
Dim initializer As
BoundArrayInitialization
= boundArray.InitializerOpt
Semantics\Conversions.vb (2)
1312
Private Shared Function ClassifyArrayInitialization(source As
BoundArrayInitialization
, targetElementType As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1331
elementConv = ClassifyArrayInitialization(DirectCast(sourceElement,
BoundArrayInitialization
), targetElementType, binder, useSiteInfo)
Semantics\TypeInference\TypeInferenceCollection.vb (2)
404
Private Shared Sub AppendArrayElements(source As
BoundArrayInitialization
, elements As ArrayBuilder(Of BoundExpression))
407
AppendArrayElements(DirectCast(sourceElement,
BoundArrayInitialization
), elements)