2 types derived from ArrayTypeSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ArrayTypeSymbol.cs (2)
507private sealed class SZArray : ArrayTypeSymbol 565private abstract class MDArray : ArrayTypeSymbol
273 references to ArrayTypeSymbol
Microsoft.CodeAnalysis.CSharp (253)
Binder\Binder_Attributes.cs (3)
925((ArrayTypeSymbol)type).ElementType.SpecialType == SpecialType.System_Object) 981var type = (ArrayTypeSymbol)node.Type;
Binder\Binder_Conversions.cs (2)
494if (source.Type is ArrayTypeSymbol) 580method.Parameters[0].Type is ArrayTypeSymbol { IsSZArray: true, ElementType: TypeParameterSymbol });
Binder\Binder_Crefs.cs (1)
557return ContainsNestedTypeOfUnconstructedGenericType(((ArrayTypeSymbol)type).ElementType);
Binder\Binder_Expressions.cs (11)
3978var type = (ArrayTypeSymbol)BindArrayType(node.Type, diagnostics, permitDimensions: true, basesBeingResolved: null, disallowRestrictedTypes: true).Type; 4087var arrayType = ArrayTypeSymbol.CreateCSharpArray(Compilation.Assembly, TypeWithAnnotations.Create(bestType), rank); 4212ArrayTypeSymbol type, 4292ArrayTypeSymbol type, 4362ArrayTypeSymbol type, 4461var arrayType = (ArrayTypeSymbol)BindArrayType(arrayTypeSyntax, diagnostics, permitDimensions: true, basesBeingResolved: null, disallowRestrictedTypes: false).Type; 9325var arrayType = (ArrayTypeSymbol)expr.Type;
Binder\Binder_Invocation.cs (1)
1722if (collectionType is ArrayTypeSymbol { IsSZArray: true })
Binder\Binder_Statements.cs (2)
1268elementType = ((ArrayTypeSymbol)initializerType).ElementType; 1840(InitializerExpressionSyntax)node, (ArrayTypeSymbol)destinationType,
Binder\Binder_Symbols.cs (2)
669var array = ArrayTypeSymbol.CreateCSharpArray(this.Compilation.Assembly, type, rankSpecifier.Rank);
Binder\DecisionDagBuilder.cs (2)
1551while (expressionType is ArrayTypeSymbol array1 && 1552patternType is ArrayTypeSymbol array2 &&
Binder\ForEachLoopBinder.cs (1)
1294((ArrayTypeSymbol)collectionExprType).ElementTypeWithAnnotations;
Binder\Semantics\AccessCheck.cs (1)
152return IsSymbolAccessibleCore(((ArrayTypeSymbol)symbol).ElementType, within, null, out failedThroughTypeCheck, compilation, ref useSiteInfo, basesBeingResolved);
Binder\Semantics\Conversions\ConversionsBase.cs (14)
1660if (destination is ArrayTypeSymbol arrayType) 2492var s = source as ArrayTypeSymbol; 2493var d = destination as ArrayTypeSymbol; 2542private bool HasArrayConversionToInterface(ArrayTypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2722var s = source as ArrayTypeSymbol; 3727var sourceArray = source as ArrayTypeSymbol; 3728var destinationArray = destination as ArrayTypeSymbol; 3961if (source is ArrayTypeSymbol { IsSZArray: true, ElementTypeWithAnnotations: { } elementType }) 4026if (source is ArrayTypeSymbol { IsSZArray: true, ElementTypeWithAnnotations: { } elementType } &&
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (12)
1689var arraySource = (ArrayTypeSymbol)source.Type; 1690var arrayTarget = (ArrayTypeSymbol)target.Type; 1744return type is ArrayTypeSymbol arraySource 2048private static TypeWithAnnotations GetMatchingElementType(ArrayTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2056var arrayTarget = (ArrayTypeSymbol)target; 2101var arraySource = (ArrayTypeSymbol)source; 2540var arrayTarget = (ArrayTypeSymbol)target.Type;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
2759var arr1 = (ArrayTypeSymbol)t1; 2760var arr2 = (ArrayTypeSymbol)t2; 2984if (node.Type is ArrayTypeSymbol) 3210if (type is ArrayTypeSymbol { IsSZArray: true } arrayType)
CodeGen\EmitAddress.cs (2)
403if (((ArrayTypeSymbol)arrayAccess.Expression.Type).IsSZArray) 411_builder.EmitArrayElementAddress(_module.Translate((ArrayTypeSymbol)arrayAccess.Expression.Type),
CodeGen\EmitArrayInitializer.cs (9)
45private void EmitArrayInitializers(ArrayTypeSymbol arrayType, BoundArrayInitialization inits) 67private void EmitElementInitializers(ArrayTypeSymbol arrayType, 81private void EmitVectorElementInitializers(ArrayTypeSymbol arrayType, 134private void EmitMultidimensionalElementInitializers(ArrayTypeSymbol arrayType, 168private void EmitAllElementInitializersRecursive(ArrayTypeSymbol arrayType, 471ArrayTypeSymbol? arrayType = null; 479arrayType = (ArrayTypeSymbol)ac.Type; 632bool tryEmitAsCachedArrayFromBlob(NamedTypeSymbol spanType, BoundExpression wrappedExpression, int elementCount, ImmutableArray<byte> data, ref ArrayTypeSymbol arrayType, TypeSymbol elementType) 682bool tryEmitAsCachedArrayOfConstants(BoundArrayCreation arrayCreation, ArrayTypeSymbol arrayType, TypeSymbol elementType, NamedTypeSymbol spanType, bool used, BoundExpression? inPlaceTarget, out bool avoidInPlace)
CodeGen\EmitExpression.cs (10)
1014if (((ArrayTypeSymbol)arrayAccess.Expression.Type).IsSZArray) 1101_builder.EmitArrayElementLoad(_module.Translate((ArrayTypeSymbol)arrayAccess.Expression.Type), arrayAccess.Expression.Syntax, _diagnostics.DiagnosticBag); 2374var arrayType = (ArrayTypeSymbol)expression.Type; 3097var arrayType = (ArrayTypeSymbol)array.Type; 3195private void EmitArrayElementStore(ArrayTypeSymbol arrayType, SyntaxNode syntaxNode) 3210private void EmitVectorElementStore(ArrayTypeSymbol arrayType, SyntaxNode syntaxNode) 3979return IsVarianceCast(((ArrayTypeSymbol)to).ElementType, ((ArrayTypeSymbol)from).ElementType);
Compilation\CSharpCompilation.cs (4)
2252var array = (ArrayTypeSymbol)firstType.Type; 2368internal ArrayTypeSymbol CreateArrayTypeSymbol(TypeSymbol elementType, int rank = 1, NullableAnnotation elementNullableAnnotation = NullableAnnotation.Oblivious) 2380return ArrayTypeSymbol.CreateCSharpArray(this.Assembly, TypeWithAnnotations.Create(elementType, elementNullableAnnotation), rank);
Compiler\ClsComplianceChecker.cs (6)
986return IsCompliantType(((ArrayTypeSymbol)type).ElementType, context); 1380ArrayTypeSymbol xArrayType = (ArrayTypeSymbol)xType; 1381ArrayTypeSymbol yArrayType = (ArrayTypeSymbol)yType; 1418private static bool IsArrayOfArrays(ArrayTypeSymbol arrayType)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
42public override object VisitArrayType(ArrayTypeSymbol symbol, StringBuilder builder)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (10)
147public override Symbol? VisitArrayType(ArrayTypeSymbol symbol) 160return ArrayTypeSymbol.CreateSZArray(_otherAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(otherElementType, otherModifiers)); 163return ArrayTypeSymbol.CreateMDArray(_otherAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(otherElementType, otherModifiers), symbol.Rank, symbol.Sizes, symbol.LowerBounds); 566private bool AreArrayTypesEqual(ArrayTypeSymbol type, ArrayTypeSymbol other) 757return AreArrayTypesEqual((ArrayTypeSymbol)type, (ArrayTypeSymbol)other); 859public override Symbol VisitArrayType(ArrayTypeSymbol symbol) 866return ArrayTypeSymbol.CreateSZArray(symbol.BaseTypeNoUseSiteDiagnostics.ContainingAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(translatedElementType, translatedModifiers)); 869return ArrayTypeSymbol.CreateMDArray(symbol.BaseTypeNoUseSiteDiagnostics.ContainingAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(translatedElementType, translatedModifiers), symbol.Rank, symbol.Sizes, symbol.LowerBounds);
Emitter\Model\ArrayTypeSymbolAdapter.cs (2)
104internal ArrayTypeSymbolAdapter(ArrayTypeSymbol underlyingArrayTypeSymbol) 110internal ArrayTypeSymbol AdaptedArrayTypeSymbol { get; }
Emitter\Model\AttributeDataAdapter.cs (1)
123var arrayType = ((PEModuleBuilder)context.Module).Translate((ArrayTypeSymbol)argument.TypeInternal);
Emitter\Model\PEModuleBuilder.cs (6)
1148return Translate((ArrayTypeSymbol)typeSymbol); 1445internal Cci.IArrayTypeReference Translate(ArrayTypeSymbol symbol) 1579var byteArrayType = ArrayTypeSymbol.CreateSZArray(byteType.ContainingAssembly, TypeWithAnnotations.Create(byteType)); 1665var boolArray = ArrayTypeSymbol.CreateSZArray(booleanType.ContainingAssembly, TypeWithAnnotations.Create(booleanType));
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (2)
50ArrayTypeSymbol payloadArrayType = (ArrayTypeSymbol)payloadRoot.Value.Type.GetInternalSymbol();
FlowAnalysis\DefiniteAssignment.cs (2)
906type is not ArrayTypeSymbol { IsSZArray: true, ElementType.SpecialType: SpecialType.System_Byte }) 2635MarkFieldsUsed(((ArrayTypeSymbol)type).ElementType);
FlowAnalysis\EmptyStructTypeCache.cs (1)
239type = ((ArrayTypeSymbol)type).BaseTypeNoUseSiteDiagnostics;
FlowAnalysis\NullableWalker.cs (5)
4636ArrayTypeSymbol arrayType => arrayType.ElementTypeWithAnnotations, 4713ArrayTypeSymbol arrayType => arrayType.WithElementType(inferredType), 4851var type = ResultType.Type as ArrayTypeSymbol; 11037else if (resultType is ArrayTypeSymbol arrayType)
FlowAnalysis\NullableWalker_Patterns.cs (1)
855: ((ArrayTypeSymbol)inputType).ElementTypeWithAnnotations,
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
339var arrayType = (ArrayTypeSymbol)node.Type;
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
80var arrayType = (ArrayTypeSymbol)node.Type;
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (4)
33private readonly ArrayTypeSymbol _payloadType; 117_payloadType = ArrayTypeSymbol.CreateCSharpArray(methodBodyFactory.Compilation.Assembly, TypeWithAnnotations.Create(payloadElementType)); 252ArrayTypeSymbol modulePayloadType = 253ArrayTypeSymbol.CreateCSharpArray(_methodBodyFactory.Compilation.Assembly, TypeWithAnnotations.Create(_payloadType));
Lowering\LocalRewriter\LocalRewriter.cs (1)
844var elementType = ((ArrayTypeSymbol)node.Expression.Type).ElementTypeWithAnnotations;
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
1134optimized = CreateArrayEmptyCallIfAvailable(possibleParamsArray.Syntax, ((ArrayTypeSymbol)possibleParamsArray.Type!).ElementType); 1398private BoundExpression CreateEmptyArray(SyntaxNode syntax, ArrayTypeSymbol arrayType)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (13)
240ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType), 257var arrayType = collectionType as ArrayTypeSymbol; 296arrayType = ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType); 421arrayOrList = CreateEmptyArray(syntax, ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType)); 442SynthesizedReadOnlyListKind.Array => createArray(node, ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType)), 459BoundExpression createArray(BoundCollectionExpression node, ArrayTypeSymbol arrayType) 657private BoundExpression? TryOptimizeSingleSpreadToArray(BoundCollectionExpression node, ArrayTypeSymbol arrayType) 719private BoundExpression CreateAndPopulateArray(BoundCollectionExpression node, ArrayTypeSymbol arrayType) 789Debug.Assert(arrayTemp.Type is ArrayTypeSymbol); 793var elementType = ((ArrayTypeSymbol)arrayTemp.Type).ElementType; 858if (type is ArrayTypeSymbol { IsSZArray: true } arrayType 1353if (convertedExpression.Operand.Type is ArrayTypeSymbol arrayType)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
762return (type as ArrayTypeSymbol)?.ElementType.IsSealed == true;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
104var byteArray = ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, TypeWithAnnotations.Create(byteType)); 142private BoundArrayCreation MakeUnderlyingArrayForUtf8Span(SyntaxNode syntax, ArrayTypeSymbol byteArray, IReadOnlyList<byte> bytes, out int length) 626if (sourceType is ArrayTypeSymbol)
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (2)
516ArrayTypeSymbol arrayType = (ArrayTypeSymbol)pinnedTemp.Type;
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (6)
46ArrayTypeSymbol arrayType = (ArrayTypeSymbol)nodeExpressionType; 909ArrayTypeSymbol arrayType = (ArrayTypeSymbol)collectionExpression.Type; 1058ArrayTypeSymbol arrayType = (ArrayTypeSymbol)collectionExpression.Type;
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (2)
39var asArrayType = (ArrayTypeSymbol)rewrittenReceiverOpt.Type;
Lowering\SyntheticBoundNodeFactory.cs (4)
271Debug.Assert(!(receiverOpt is { Type: ArrayTypeSymbol { IsSZArray: true } } && 295public ArrayTypeSymbol WellKnownArrayType(WellKnownType elementType) 1167int rank = ((ArrayTypeSymbol)array.Type).Rank; 1180return new BoundArrayAccess(Syntax, array, indices, ((ArrayTypeSymbol)array.Type).ElementType);
Symbols\AbstractTypeMap.cs (5)
107result = SubstituteArrayType((ArrayTypeSymbol)previous); 184private ArrayTypeSymbol SubstituteArrayType(ArrayTypeSymbol t) 213return ArrayTypeSymbol.CreateSZArray( 219return ArrayTypeSymbol.CreateMDArray(
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (2)
211typeArgumentsBuilder.Add(((ArrayTypeSymbol)field.Type).ElementTypeWithAnnotations); 238var replacement = TypeWithAnnotations.Create(((ArrayTypeSymbol)lastParam.Type).WithElementType(original));
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
137type = TypeWithAnnotations.Create(ArrayTypeSymbol.CreateSZArray(containingType.ContainingAssembly, type));
Symbols\ArrayTypeSymbol.cs (18)
36internal static ArrayTypeSymbol CreateCSharpArray( 49internal static ArrayTypeSymbol CreateMDArray( 65internal static ArrayTypeSymbol CreateMDArray( 75internal static ArrayTypeSymbol CreateSZArray( 82internal static ArrayTypeSymbol CreateSZArray( 90internal static ArrayTypeSymbol CreateSZArray( 97internal ArrayTypeSymbol WithElementType(TypeWithAnnotations elementTypeWithAnnotations) 102protected abstract ArrayTypeSymbol WithElementTypeCore(TypeWithAnnotations elementTypeWithAnnotations); 139internal bool HasSameShapeAs(ArrayTypeSymbol other) 173internal bool HasSameSizesAndLowerBoundsAs(ArrayTypeSymbol other) 343return this.Equals(t2 as ArrayTypeSymbol, comparison); 346private bool Equals(ArrayTypeSymbol? other, TypeCompareKind comparison) 378var cur = (ArrayTypeSymbol)current; 414TypeWithAnnotations elementType = ElementTypeWithAnnotations.MergeEquivalentTypes(((ArrayTypeSymbol)other).ElementTypeWithAnnotations, variance); 521protected override ArrayTypeSymbol WithElementTypeCore(TypeWithAnnotations newElementType) 611protected override ArrayTypeSymbol WithElementTypeCore(TypeWithAnnotations elementTypeWithAnnotations) 644protected override ArrayTypeSymbol WithElementTypeCore(TypeWithAnnotations elementTypeWithAnnotations)
Symbols\AssemblySymbol.cs (1)
767return ArrayTypeSymbol.CreateCSharpArray(this, TypeWithAnnotations.Create(symbol), rank);
Symbols\Attributes\SourceAttributeData.cs (1)
320specType = ((ArrayTypeSymbol)parameterType).ElementType.SpecialType;
Symbols\Compilation_WellKnownMembers.cs (11)
789var boolArray = ArrayTypeSymbol.CreateSZArray(booleanType.ContainingAssembly, TypeWithAnnotations.Create(booleanType)); 806var stringArray = ArrayTypeSymbol.CreateSZArray(stringType.ContainingAssembly, TypeWithAnnotations.Create(stringType)); 949HandleCustomModifiers(((ArrayTypeSymbol)type).ElementTypeWithAnnotations.CustomModifiers.Length, transformFlagsBuilder); 1077ArrayTypeSymbol array = (ArrayTypeSymbol)type; 1162ArrayTypeSymbol array = (ArrayTypeSymbol)type; 1220ArrayTypeSymbol array = (ArrayTypeSymbol)type;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (5)
164return TransformArrayType((ArrayTypeSymbol)type); 302private ArrayTypeSymbol TransformArrayType(ArrayTypeSymbol arrayType) 321ArrayTypeSymbol.CreateSZArray(_containingAssembly, arrayType.ElementTypeWithAnnotations.WithTypeAndModifiers(transformedElementType, arrayType.ElementTypeWithAnnotations.CustomModifiers)) : 322ArrayTypeSymbol.CreateMDArray(_containingAssembly, arrayType.ElementTypeWithAnnotations.WithTypeAndModifiers(transformedElementType, arrayType.ElementTypeWithAnnotations.CustomModifiers), arrayType.Rank, arrayType.Sizes, arrayType.LowerBounds);
Symbols\Metadata\PE\MetadataDecoder.cs (1)
222return IsOrClosedOverATypeFromAssemblies(((ArrayTypeSymbol)symbol).ElementType, assemblies);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (3)
87return TransformArrayType((ArrayTypeSymbol)type); 153private ArrayTypeSymbol? TransformArrayType(ArrayTypeSymbol type)
Symbols\Metadata\PE\SymbolFactory.cs (2)
26return ArrayTypeSymbol.CreateMDArray(moduleSymbol.ContainingAssembly, CreateType(elementType, customModifiers), rank, sizes, lowerBounds); 71return ArrayTypeSymbol.CreateSZArray(moduleSymbol.ContainingAssembly, CreateType(elementType, customModifiers));
Symbols\Metadata\PE\TupleTypeDecoder.cs (3)
197return DecodeArrayType((ArrayTypeSymbol)type); 334private ArrayTypeSymbol DecodeArrayType(ArrayTypeSymbol type)
Symbols\PublicModel\ArrayTypeSymbol.cs (2)
14private readonly Symbols.ArrayTypeSymbol _underlying; 17public ArrayTypeSymbol(Symbols.ArrayTypeSymbol underlying, CodeAnalysis.NullableAnnotation nullableAnnotation)
Symbols\Retargeting\RetargetingSymbolTranslator.cs (6)
651return IsOrClosedOverAnExplicitLocalType(((ArrayTypeSymbol)symbol).ElementType); 695public ArrayTypeSymbol Retarget(ArrayTypeSymbol type) 707return ArrayTypeSymbol.CreateSZArray(this.RetargetingAssembly, newElement); 710return ArrayTypeSymbol.CreateMDArray(this.RetargetingAssembly, newElement, type.Rank, type.Sizes, type.LowerBounds); 1334public override Symbol VisitArrayType(ArrayTypeSymbol symbol, RetargetOptions options)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1447static (m, systemType) => m is FieldSymbol { Type: ArrayTypeSymbol { ElementType: NamedTypeSymbol elementType } } && elementType.Equals(systemType, TypeCompareKind.ConsiderEverything),
Symbols\SymbolDistinguisher.cs (1)
153symbol = ((ArrayTypeSymbol)symbol).ElementType;
Symbols\SymbolExtensions.cs (1)
665internal static IArrayTypeSymbol? GetPublicSymbol(this ArrayTypeSymbol? symbol)
Symbols\SymbolVisitor.cs (1)
30public virtual void VisitArrayType(ArrayTypeSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
30public virtual TResult VisitArrayType(ArrayTypeSymbol symbol)
Symbols\SymbolVisitor`2.cs (2)
100/// Called when visiting an <see cref="ArrayTypeSymbol" />; Override this with specific 106public virtual TResult VisitArrayType(ArrayTypeSymbol symbol, TArgument argument)
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (1)
33ArrayTypeSymbol.CreateSZArray(
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (1)
37ArrayTypeSymbol.CreateSZArray(
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
34var submissionArrayType = compilation.CreateArrayTypeSymbol(systemObject);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
58ArrayTypeSymbol.CreateCSharpArray(compilation.Assembly,
Symbols\TypeSymbolExtensions.cs (7)
269var arrayType = (ArrayTypeSymbol)type; 375return type.TypeKind == TypeKind.Array && ((ArrayTypeSymbol)type).IsSZArray; 922next = ((ArrayTypeSymbol)current).ElementTypeWithAnnotations; 1929var arrayType = (ArrayTypeSymbol)type; 2019private static bool NormalizeTaskTypesInArray(CSharpCompilation compilation, ref ArrayTypeSymbol arrayType)
Symbols\TypeUnification.cs (5)
118ArrayTypeSymbol at1 = (ArrayTypeSymbol)t1.Type; 119ArrayTypeSymbol at2 = (ArrayTypeSymbol)t2.Type; 270return Contains(((ArrayTypeSymbol)type).ElementType, typeParam);
Symbols\TypeWithAnnotations.cs (1)
657typeWithAnnotations = ((ArrayTypeSymbol)type).ElementTypeWithAnnotations;
Symbols\VarianceSafety.cs (1)
332return IsVarianceUnsafe(((ArrayTypeSymbol)type).ElementType, requireOutputSafety, requireInputSafety, context, locationProvider, locationArg, diagnostics);
Utilities\TypeSymbolExtensions.cs (4)
33var array = (ArrayTypeSymbol)type; 99var array = (ArrayTypeSymbol)type;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests.cs (1)
5492var typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(classW));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
Symbols\CompilationCreationTests.cs (1)
97var arrayOfc107 = ArrayTypeSymbol.CreateCSharpArray(c1.Assembly, TypeWithAnnotations.Create(c107));
Symbols\ExtensionMethodTests.cs (1)
2528var arrayType = ArrayTypeSymbol.CreateCSharpArray(compilation.Assembly, TypeWithAnnotations.Create(stringType), 1);
Symbols\Metadata\PE\DynamicTransformsTests.cs (16)
76var arrayOfT = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(t)); 80var arrayOfInnerInnerOfInt = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(memberInnerInnerOfInt)); 135var arrayOfDynamic = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(s_dynamicType), 1); 140var arrayOfArrayOfDynamic = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(arrayOfDynamic), 1); 222var complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); 234var complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray), 1); 240var arrayOfDerivedTypeParam = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(derivedTypeParam), 1); 280var arrayOfDynamic = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(s_dynamicType)); 286var arrayOfDerivedTypeParam = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(derivedTypeParam)); 294var complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner)); 301var complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray)); 334var arrayOfDerivedTypeParam = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(unsafeClassTypeParam), 1); 341var arrayOfPointerToInt = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(pointerToInt), 1); 343var arrayOfArrayOfPointerToInt = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(arrayOfPointerToInt), 1); 347var complicatedInnerInnerArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInner), 1); 354var complicatedInnerInnerArrayOfArray = ArrayTypeSymbol.CreateCSharpArray(_assembly, TypeWithAnnotations.Create(complicatedInnerInnerArray), 1);
Symbols\Source\ModifierTests.cs (1)
159var arrayType = ArrayTypeSymbol.CreateCSharpArray(comp.Assembly, TypeWithAnnotations.Create(typeParamType, customModifiers: customModifiers)); // This is legal, but we're already manually constructing types.