11 implementations of GetTypeArgumentCustomModifiers
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
87
public ImmutableArray<CustomModifier>
GetTypeArgumentCustomModifiers
(int ordinal)
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
87
public ImmutableArray<CustomModifier>
GetTypeArgumentCustomModifiers
(int ordinal)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
87
public ImmutableArray<CustomModifier>
GetTypeArgumentCustomModifiers
(int ordinal)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
87
public ImmutableArray<CustomModifier>
GetTypeArgumentCustomModifiers
(int ordinal)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
94
ImmutableArray<CustomModifier> INamedTypeSymbol.
GetTypeArgumentCustomModifiers
(int ordinal)
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
87
public ImmutableArray<CustomModifier>
GetTypeArgumentCustomModifiers
(int ordinal)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
87
public ImmutableArray<CustomModifier>
GetTypeArgumentCustomModifiers
(int ordinal)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
1373
Private Function
INamedTypeSymbol_GetTypeArgumentCustomModifiers
(ordinal As Integer) As ImmutableArray(Of CustomModifier) Implements INamedTypeSymbol.GetTypeArgumentCustomModifiers
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
87
public ImmutableArray<CustomModifier>
GetTypeArgumentCustomModifiers
(int ordinal)
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
87
public ImmutableArray<CustomModifier>
GetTypeArgumentCustomModifiers
(int ordinal)
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
87
public ImmutableArray<CustomModifier>
GetTypeArgumentCustomModifiers
(int ordinal)
48 references to GetTypeArgumentCustomModifiers
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
235
AddCustomModifiersIfNeeded(symbol.
GetTypeArgumentCustomModifiers
(0), leadingSpace: true, trailingSpace: false);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (22)
Symbols\CustomModifiersTests.cs (22)
68
Assert.Equal("System.Runtime.CompilerServices.IsLong", type.
GetTypeArgumentCustomModifiers
(0).Single().Modifier.ToTestDisplayString());
69
Assert.Throws<System.IndexOutOfRangeException>(() => type.
GetTypeArgumentCustomModifiers
(1));
70
Assert.Throws<System.IndexOutOfRangeException>(() => type.
GetTypeArgumentCustomModifiers
(-1));
74
Assert.True(nullable.
GetTypeArgumentCustomModifiers
(0).IsEmpty);
75
Assert.Throws<System.IndexOutOfRangeException>(() => nullable.
GetTypeArgumentCustomModifiers
(1));
76
Assert.Throws<System.IndexOutOfRangeException>(() => nullable.
GetTypeArgumentCustomModifiers
(-1));
80
Assert.Throws<System.IndexOutOfRangeException>(() => i.
GetTypeArgumentCustomModifiers
(0));
84
Assert.True(nullable.
GetTypeArgumentCustomModifiers
(0).IsEmpty);
85
Assert.Throws<System.IndexOutOfRangeException>(() => nullable.
GetTypeArgumentCustomModifiers
(1));
86
Assert.Throws<System.IndexOutOfRangeException>(() => nullable.
GetTypeArgumentCustomModifiers
(-1));
139
Assert.True(type.
GetTypeArgumentCustomModifiers
(0).IsEmpty);
140
var modifiers = type.
GetTypeArgumentCustomModifiers
(1);
144
Assert.Throws<System.IndexOutOfRangeException>(() => type.
GetTypeArgumentCustomModifiers
(2));
145
Assert.Throws<System.IndexOutOfRangeException>(() => type.
GetTypeArgumentCustomModifiers
(-1));
149
Assert.True(dictionary.
GetTypeArgumentCustomModifiers
(0).IsEmpty);
150
Assert.True(dictionary.
GetTypeArgumentCustomModifiers
(1).IsEmpty);
151
Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.
GetTypeArgumentCustomModifiers
(2));
152
Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.
GetTypeArgumentCustomModifiers
(-1));
157
Assert.True(dictionary.
GetTypeArgumentCustomModifiers
(0).IsEmpty);
158
Assert.True(dictionary.
GetTypeArgumentCustomModifiers
(1).IsEmpty);
159
Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.
GetTypeArgumentCustomModifiers
(2));
160
Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.
GetTypeArgumentCustomModifiers
(-1));
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
88
=> _symbol.
GetTypeArgumentCustomModifiers
(ordinal);
Microsoft.CodeAnalysis.VisualBasic (2)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
512
AddCustomModifiersIfRequired(modifiersSource.
GetTypeArgumentCustomModifiers
(i))
Symbols\NamedTypeSymbol.vb (1)
1373
Private Function INamedTypeSymbol_GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) Implements INamedTypeSymbol.
GetTypeArgumentCustomModifiers
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (22)
SymbolsTests\CustomModifiersTests.vb (22)
59
Assert.Equal("System.Runtime.CompilerServices.IsLong", type.
GetTypeArgumentCustomModifiers
(0).Single().Modifier.ToTestDisplayString())
60
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.
GetTypeArgumentCustomModifiers
(1))
61
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.
GetTypeArgumentCustomModifiers
(-1))
65
Assert.True(nullable.
GetTypeArgumentCustomModifiers
(0).IsEmpty)
66
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.
GetTypeArgumentCustomModifiers
(1))
67
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.
GetTypeArgumentCustomModifiers
(-1))
71
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() i.
GetTypeArgumentCustomModifiers
(0))
75
Assert.True(nullable.
GetTypeArgumentCustomModifiers
(0).IsEmpty)
76
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.
GetTypeArgumentCustomModifiers
(1))
77
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.
GetTypeArgumentCustomModifiers
(-1))
128
Assert.True(type.
GetTypeArgumentCustomModifiers
(0).IsEmpty)
129
Dim modifiers = type.
GetTypeArgumentCustomModifiers
(1)
133
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.
GetTypeArgumentCustomModifiers
(2))
134
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.
GetTypeArgumentCustomModifiers
(-1))
138
Assert.True(dictionary.
GetTypeArgumentCustomModifiers
(0).IsEmpty)
139
Assert.True(dictionary.
GetTypeArgumentCustomModifiers
(1).IsEmpty)
140
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.
GetTypeArgumentCustomModifiers
(2))
141
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.
GetTypeArgumentCustomModifiers
(-1))
146
Assert.True(dictionary.
GetTypeArgumentCustomModifiers
(0).IsEmpty)
147
Assert.True(dictionary.
GetTypeArgumentCustomModifiers
(1).IsEmpty)
148
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.
GetTypeArgumentCustomModifiers
(2))
149
Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.
GetTypeArgumentCustomModifiers
(-1))