17 references to CreateArrayTypeSymbol
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TypeNameResolver.cs (1)
80
return typeName.IsSZArray ? _compilation.
CreateArrayTypeSymbol
(type) : _compilation.CreateArrayTypeSymbol(type, typeName.GetArrayRank());
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1097
return
CreateArrayTypeSymbol
(elementType, rank, elementNullableAnnotation: default);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Compilation\CompilationAPITests.cs (13)
2462
var arrayType = comp.
CreateArrayTypeSymbol
(elementType);
2470
arrayType = comp.
CreateArrayTypeSymbol
(elementType, 1, default);
2478
arrayType = comp.
CreateArrayTypeSymbol
(elementType, elementNullableAnnotation: default);
2491
Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.
CreateArrayTypeSymbol
(elementType).ElementNullableAnnotation);
2492
Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.
CreateArrayTypeSymbol
(elementType).ElementType.NullableAnnotation);
2493
Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.
CreateArrayTypeSymbol
(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.None).ElementNullableAnnotation);
2494
Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.
CreateArrayTypeSymbol
(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.None).ElementType.NullableAnnotation);
2495
Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.
CreateArrayTypeSymbol
(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.None).ElementNullableAnnotation);
2496
Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.
CreateArrayTypeSymbol
(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.None).ElementType.NullableAnnotation);
2497
Assert.Equal(CodeAnalysis.NullableAnnotation.NotAnnotated, comp.
CreateArrayTypeSymbol
(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.NotAnnotated).ElementNullableAnnotation);
2498
Assert.Equal(CodeAnalysis.NullableAnnotation.NotAnnotated, comp.
CreateArrayTypeSymbol
(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.NotAnnotated).ElementType.NullableAnnotation);
2499
Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, comp.
CreateArrayTypeSymbol
(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.Annotated).ElementNullableAnnotation);
2500
Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, comp.
CreateArrayTypeSymbol
(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.Annotated).ElementType.NullableAnnotation);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
340
var arrayType = _emptyCompilation.
CreateArrayTypeSymbol
(_emptyCompilation.GetSpecialType(SpecialType.System_Int32));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\DocumentationCommentIdTests.cs (1)
351
CheckReferenceId("System.Int32[]", compilation.
CreateArrayTypeSymbol
(intType), compilation);