144 references to Array
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
192else if (type.TypeKind is TypeKind.Array)
ILLink.RoslynAnalyzer (1)
TrimAnalysis\HandleCallAction.cs (1)
106 } else if (staticType.IsSealed || staticType.IsTypeOf ("System", "Delegate") || staticType.TypeKind == TypeKind.Array) {
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
311if (type.TypeKind == TypeKind.Array)
Microsoft.CodeAnalysis (2)
MetadataReader\MetadataDecoder.cs (1)
2149Debug.Assert(type.TypeKind == TypeKind.Array);
Symbols\TypedConstant.cs (1)
182case TypeKind.Array:
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
265case TypeKind.Array:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
162if (type.TypeKind == TypeKind.Array && typeArguments.IsEmpty)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (1)
43public override TypeKind TypeKind => TypeKind.Array;
Microsoft.CodeAnalysis.CSharp (40)
Binder\Binder_Attributes.cs (1)
728parameter.Type.TypeKind == TypeKind.Array &&
Binder\Binder_Constraints.cs (1)
616case TypeKind.Array:
Binder\Binder_Crefs.cs (1)
556case TypeKind.Array:
Binder\Binder_Expressions.cs (2)
5180case TypeKind.Array: 9287case TypeKind.Array:
Binder\Binder_Lookup.cs (2)
196case TypeKind.Array: 1879case TypeKind.Array:
Binder\Binder_QueryErrors.cs (1)
82if (instanceType.TypeKind == TypeKind.Array || name == "Cast" && HasCastToQueryProvider(instanceType, ref useSiteInfo))
Binder\Semantics\Conversions\ConversionsBase.cs (1)
2674case TypeKind.Array:
Compilation\CSharpCompilation.cs (1)
2247if (firstType.TypeKind != TypeKind.Array)
Compiler\ClsComplianceChecker.cs (6)
285if (paramType.TypeKind == TypeKind.Array || 605if (argument.TypeInternal.TypeKind == TypeKind.Array) 621if (argument.TypeInternal.TypeKind == TypeKind.Array) 639if (type.TypeKind == TypeKind.Array) 985case TypeKind.Array: 1378if (typeKind == TypeKind.Array)
FlowAnalysis\DefiniteAssignment.cs (1)
2634case TypeKind.Array:
FlowAnalysis\EmptyStructTypeCache.cs (1)
238case TypeKind.Array:
Lowering\LocalRewriter\LocalRewriter.cs (1)
843Debug.Assert(node.Expression.Type is { TypeKind: TypeKind.Array });
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
213else if (fixedCollectionInitializer.Expression.Type is { TypeKind: TypeKind.Array })
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (4)
877Debug.Assert(collectionExpression.Type is { TypeKind: TypeKind.Array }); 905Debug.Assert(collectionExpression.Type is { TypeKind: TypeKind.Array }); 1026Debug.Assert(collectionExpression.Type is { TypeKind: TypeKind.Array }); 1054Debug.Assert(collectionExpression.Type is { TypeKind: TypeKind.Array });
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (1)
37if (rewrittenReceiverOpt is { Type: { TypeKind: TypeKind.Array } } && !isLeftOfAssignment)
Lowering\SyntheticBoundNodeFactory.cs (3)
1160Debug.Assert(array.Type is { TypeKind: TypeKind.Array }); 1166Debug.Assert(array.Type is { TypeKind: TypeKind.Array }); 1179Debug.Assert(array.Type is { TypeKind: TypeKind.Array });
Symbols\ArrayTypeSymbol.cs (2)
298return TypeKind.Array; 376while (current.TypeKind == TypeKind.Array)
Symbols\Compilation_WellKnownMembers.cs (1)
946case TypeKind.Array:
Symbols\ConstraintsHelper.cs (2)
268case TypeKind.Array: 1538case TypeKind.Array:
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
86case TypeKind.Array:
Symbols\TypeSymbolExtensions.cs (4)
369return type.TypeKind == TypeKind.Array; 375return type.TypeKind == TypeKind.Array && ((ArrayTypeSymbol)type).IsSZArray; 921case TypeKind.Array: 1512case TypeKind.Array:
Symbols\TypeWithAnnotations.cs (1)
650if (type.TypeKind != TypeKind.Array)
Utilities\TypeSymbolExtensions.cs (1)
195case TypeKind.Array:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1293rewrittenType.TypeKind == TypeKind.Array ||
Microsoft.CodeAnalysis.CSharp.Features (1)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
96if (returnType.TypeKind == TypeKind.Array && containingScope is InitializerExpressionSyntax)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (30)
Compilation\GetSemanticInfoTests.cs (1)
1818Assert.Equal(TypeKind.Array, candidate.Parameters.Last().Type.TypeKind);
Compilation\SemanticModelGetSemanticInfoTests.cs (22)
10904Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 10906Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11795Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11797Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11831Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11833Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11866Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11868Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11901Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11903Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11937Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11939Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11973Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11975Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 12008Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12010Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 12043Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12045Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 12079Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12081Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 14159Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 14161Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind);
Symbols\Metadata\MetadataTypeTests.cs (2)
307Assert.Equal(TypeKind.Array, type2.TypeKind); 308Assert.Equal(TypeKind.Array, type3.TypeKind);
Symbols\Metadata\PE\LoadCustomModifiers.cs (1)
167Assert.Equal(TypeKind.Array, propertyType.TypeKind);
Symbols\TypeTests.cs (4)
474Assert.Equal(TypeKind.Array, elemType1.Type.TypeKind); 488Assert.Equal(TypeKind.Array, elemType2.TypeKind); 498Assert.Equal(TypeKind.Array, retType.TypeKind); 519Assert.Equal(TypeKind.Array, p3.Type.TypeKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (1)
515else if (typeSym.TypeKind == TypeKind.Array)
UsesIsNullableVisitor.cs (1)
183case TypeKind.Array:
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1293rewrittenType.TypeKind == TypeKind.Array ||
Microsoft.CodeAnalysis.VisualBasic (21)
Binding\Binder_Expressions.vb (1)
3800Case TYPEKIND.Array, TYPEKIND.Enum
Binding\Binder_Lookup.vb (2)
580Case TypeKind.Class, TypeKind.Module, TypeKind.Structure, TypeKind.Delegate, TypeKind.Array, TypeKind.Enum 606Case TypeKind.Class, TypeKind.Structure, TypeKind.Delegate, TypeKind.Array, TypeKind.Enum
Binding\Binder_ObjectInitializer.vb (2)
233Case TypeKind.Array 335Case TypeKind.Array
Compilation\ClsComplianceChecker.vb (3)
591Case TypeKind.Array 617Case TypeKind.Array 897If typeKind = TypeKind.Array Then
Semantics\Conversions.vb (2)
2884Case TypeKind.Array 2916Return type.TypeKind = TypeKind.Array
Symbols\ArrayTypeSymbol.vb (3)
255''' <returns><see cref="TypeKind.Array"/></returns> 258Return TypeKind.Array 356While (current.TypeKind = TypeKind.Array)
Symbols\ConstraintsHelper.vb (2)
247Case TypeKind.Array, 837Case TypeKind.Array,
Symbols\MethodSymbol.vb (1)
557If firstType.TypeKind <> TypeKind.Array Then
Symbols\Source\SourceComplexParameterSymbol.vb (1)
342If paramType.TypeKind <> TypeKind.Array Then
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1114Case TypeKind.Interface, TypeKind.Enum, TypeKind.Delegate, TypeKind.Structure, TypeKind.Module, TypeKind.Array ' array can't really occur
Symbols\TypeSymbolExtensions.vb (3)
410Case TypeKind.Array, TypeKind.Delegate, TypeKind.Enum, TypeKind.Structure, TypeKind.Module 635Case TypeKind.Array 883Case TypeKind.Array
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (16)
Semantics\ArrayLiteralTests.vb (1)
1633Assert.Equal(TypeKind.Array, semanticSummary.ConvertedType.TypeKind)
Semantics\FieldInitializerBindingTests.vb (3)
447Assert.Equal(TypeKind.Array, ary.Type.TypeKind) 452Assert.Equal(TypeKind.Array, ary.Type.TypeKind) 457Assert.Equal(TypeKind.Array, ary.Type.TypeKind)
Semantics\GetExtendedSemanticInfoTests.vb (9)
1454Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 1456Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind) 2145Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 3072Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 3074Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind) 3093Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 3095Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind) 3116Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 3118Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind)
Semantics\GetSemanticInfoTests.vb (3)
218Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 220Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind) 2241Assert.Equal(TypeKind.Array, semanticSummary.ConvertedType.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (10)
SymbolsTests\Metadata\MetadataTypeTests.vb (2)
339Assert.Equal(TypeKind.Array, type2.TypeKind) 340Assert.Equal(TypeKind.Array, type3.TypeKind)
SymbolsTests\Source\FieldTests.vb (2)
149Assert.Equal(TypeKind.Array, fieldU.Type.TypeKind) 158Assert.Equal(TypeKind.Array, fieldV.Type.TypeKind) ' v is a 2d array of a 1d array.
SymbolsTests\Source\MethodTests.vb (1)
536Assert.Equal(TypeKind.Array, m2p4.Type.TypeKind)
SymbolsTests\Source\TypeBindingTests.vb (3)
44Assert.Equal(TypeKind.Array, typeA.TypeKind) 53Assert.Equal(TypeKind.Array, typeB.TypeKind) 239Assert.Equal(TypeKind.Array, typeH.TypeKind)
SymbolsTests\Source\TypeTests.vb (2)
745Assert.Equal(TypeKind.Array, mem2.ReturnType.TypeKind) 757Assert.Equal(TypeKind.Array, param.Type.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Extensions.vb (1)
260ElseIf typeSymTypeKind = TypeKind.Array Then
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
265case TypeKind.Array:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
162if (type.TypeKind == TypeKind.Array && typeArguments.IsEmpty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (1)
43public override TypeKind TypeKind => TypeKind.Array;
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
222public bool CanProvideMarshallingInfoForType(ITypeSymbol type) => type is { TypeKind: TypeKind.Array or TypeKind.Delegate } or { SpecialType: SpecialType.System_Array or SpecialType.System_Object };
Microsoft.Interop.SourceGeneration (3)
ManagedTypeInfo.cs (1)
60if (type.TypeKind == TypeKind.Array && type is IArrayTypeSymbol { IsSZArray: true } arraySymbol)
ManualTypeMarshallingHelper.cs (2)
364while (innerType.TypeKind is TypeKind.Array or TypeKind.Pointer) 392else if (wrapperType.TypeKind == TypeKind.Array)
Microsoft.VisualStudio.LanguageServices (2)
Library\VsNavInfo\NavInfoFactory.cs (1)
85else if (typeSymbol.TypeKind == TypeKind.Array)
Progression\GraphNodeIdCreation.cs (1)
275while (symbol.TypeKind == TypeKind.Array)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
695if (typeSymbol.TypeKind == TypeKind.Array)
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
CodeModel\MethodXML\MethodXmlBuilder.vb (2)
80If type.TypeKind = TypeKind.Array AndAlso 595If type.TypeKind = TypeKind.Array Then
CodeModel\VisualBasicCodeModelService.vb (1)
757If typeSymbol.TypeKind = TypeKind.Array Then