Binding\Binder_Expressions.vb (15)
693If typeSym.IsArrayType AndAlso DirectCast(typeSym, ArrayTypeSymbol).ElementType.SpecialType = SpecialType.System_Void Then
1530Dim targetArrayType As ArrayTypeSymbol = TryCast(destination, ArrayTypeSymbol)
1546sourceType = ArrayTypeSymbol.CreateVBArray(targetElementType, Nothing, 1, Compilation)
1597Private Sub ReportArrayLiteralDiagnostics(arrayLiteral As BoundArrayLiteral, targetArrayType As ArrayTypeSymbol, diagnostics As BindingDiagnosticBag)
3881type = DirectCast(type, ArrayTypeSymbol).ElementType
3903type = DirectCast(type, ArrayTypeSymbol).ElementType
3940Dim arrayType As ArrayTypeSymbol = DirectCast(expr.Type, ArrayTypeSymbol)
4124Dim inferredArrayType = ArrayTypeSymbol.CreateVBArray(inferredElementType, Nothing, knownSizes.Length, Compilation)
4182type As ArrayTypeSymbol,
4230type As ArrayTypeSymbol,
4556Not (expressionType.IsArrayType() AndAlso DirectCast(expressionType, ArrayTypeSymbol).ElementType.IsVoidType()) Then
4604Debug.Assert(dominantType.IsArrayType AndAlso DirectCast(dominantType, ArrayTypeSymbol).Rank = 1 AndAlso DirectCast(dominantType, ArrayTypeSymbol).ElementType.SpecialType = SpecialType.System_Object)
Binding\Binder_Statements.vb (10)
740Dim arrayType As ArrayTypeSymbol = Nothing
745arrayType = DirectCast(redimTargetType, ArrayTypeSymbol)
748arrayType = ArrayTypeSymbol.CreateVBArray(redimTargetType, Nothing, boundIndices.Length, Compilation)
1670Dim rhsElementType As TypeSymbol = DirectCast(valueType, ArrayTypeSymbol).ElementType
1675rhsElementType = DirectCast(rhsElementType, ArrayTypeSymbol).ElementType
1684If DirectCast(defaultType, ArrayTypeSymbol).Rank <> DirectCast(valueType, ArrayTypeSymbol).Rank Then
1712Dim lhsArrayType = DirectCast(lhsType, ArrayTypeSymbol)
1713Dim rhsArrayType = DirectCast(rhsType, ArrayTypeSymbol)
3976Dim arrayType = DirectCast(collectionType, ArrayTypeSymbol)
CodeGen\EmitExpression.vb (8)
591If DirectCast(arrayAccess.Expression.Type, ArrayTypeSymbol).IsSZArray Then
652_builder.EmitArrayElementLoad(_module.Translate(DirectCast(arrayAccess.Expression.Type, ArrayTypeSymbol)), arrayAccess.Expression.Syntax)
1596Return IsVarianceCast(DirectCast(toType, ArrayTypeSymbol).ElementType, DirectCast(fromType, ArrayTypeSymbol).ElementType)
1625Dim arrayType = DirectCast(expression.Type, ArrayTypeSymbol)
2063Dim arrayType = DirectCast(array.Type, ArrayTypeSymbol)
2106Private Sub EmitArrayElementStore(arrayType As ArrayTypeSymbol, syntaxNode As SyntaxNode)
2117Private Sub EmitVectorElementStore(arrayType As ArrayTypeSymbol, syntaxNode As SyntaxNode)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (10)
149Public Overrides Function VisitArrayType(symbol As ArrayTypeSymbol) As Symbol
158Return ArrayTypeSymbol.CreateSZArray(otherElementType, otherModifiers, Me._otherAssembly)
161Return ArrayTypeSymbol.CreateMDArray(otherElementType, otherModifiers, symbol.Rank, symbol.Sizes, symbol.LowerBounds, Me._otherAssembly)
411Private Function AreArrayTypesEqual(type As ArrayTypeSymbol, other As ArrayTypeSymbol) As Boolean
507Return AreArrayTypesEqual(DirectCast(type, ArrayTypeSymbol), DirectCast(other, ArrayTypeSymbol))
594Public Overrides Function VisitArrayType(symbol As ArrayTypeSymbol) As Symbol
599Return ArrayTypeSymbol.CreateSZArray(translatedElementType, translatedModifiers, symbol.BaseTypeNoUseSiteDiagnostics.ContainingAssembly)
602Return ArrayTypeSymbol.CreateMDArray(translatedElementType, translatedModifiers, symbol.Rank, symbol.Sizes, symbol.LowerBounds, symbol.BaseTypeNoUseSiteDiagnostics.ContainingAssembly)
Generated\BoundNodes.xml.Generated.vb (8)
2929Public Sub New(syntax As SyntaxNode, operand As BoundExpression, indices As ImmutableArray(Of BoundExpression), arrayTypeOpt As ArrayTypeSymbol, preserve As Boolean, Optional hasErrors As Boolean = False)
2961Private ReadOnly _ArrayTypeOpt As ArrayTypeSymbol
2962Public ReadOnly Property ArrayTypeOpt As ArrayTypeSymbol
2980Public Function Update(operand As BoundExpression, indices As ImmutableArray(Of BoundExpression), arrayTypeOpt As ArrayTypeSymbol, preserve As Boolean) As BoundRedimClause
4019Public 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)
4050Private ReadOnly _InferredType As ArrayTypeSymbol
4051Public ReadOnly Property InferredType As ArrayTypeSymbol
4083Public Function Update(hasDominantType As Boolean, numberOfCandidates As Integer, inferredType As ArrayTypeSymbol, bounds As ImmutableArray(Of BoundExpression), initializer As BoundArrayInitialization, binder As Binder) As BoundArrayLiteral
Semantics\TypeInference\TypeArgumentInference.vb (9)
192inferredType = ArrayTypeSymbol.CreateVBArray(arrayType.ElementType, Nothing, arrayType.Rank, arrayLiteral.Binder.Compilation.Assembly)
962Dim arrayType = DirectCast(targetType, ArrayTypeSymbol)
1090AddTypeToGraph(DirectCast(parameterType, ArrayTypeSymbol).ElementType, argNode, isOutgoingEdge, haveSeenTypeParameters)
1258Dim argumentArray = DirectCast(argumentType, ArrayTypeSymbol)
1259Dim paramArrayType = DirectCast(paramType, ArrayTypeSymbol)
1312Return RefersToGenericParameterToInferArgumentFor(DirectCast(parameterType, ArrayTypeSymbol).ElementType)
1559Dim parameterArray = DirectCast(parameterType, ArrayTypeSymbol)
1560Dim argumentArray = DirectCast(argumentType, ArrayTypeSymbol)
1790Not (baseSearchTypeKind = SymbolKind.ArrayType AndAlso DirectCast(baseSearchType, ArrayTypeSymbol).IsSZArray) Then
Symbols\ArrayTypeSymbol.vb (16)
26Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, compilation As VisualBasicCompilation) As ArrayTypeSymbol
33Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, declaringAssembly As AssemblySymbol) As ArrayTypeSymbol
48) As ArrayTypeSymbol
67Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), compilation As VisualBasicCompilation) As ArrayTypeSymbol
71Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), declaringAssembly As AssemblySymbol) As ArrayTypeSymbol
113Friend Function HasSameShapeAs(other As ArrayTypeSymbol) As Boolean
142Friend Function HasSameSizesAndLowerBoundsAs(other As ArrayTypeSymbol) As Boolean
320Return Equals(TryCast(other, ArrayTypeSymbol), comparison)
323Public Overloads Function Equals(other As ArrayTypeSymbol, compareKind As TypeCompareKind) As Boolean
357Dim cur = DirectCast(current, ArrayTypeSymbol)
365Friend MustOverride Function WithElementType(elementType As TypeSymbol) As ArrayTypeSymbol
449Return Me.Equals(TryCast(symbol, ArrayTypeSymbol))
519Dim newArray As ArrayTypeSymbol
582Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol
634Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol
686Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol