5 implementations of GetTypeArgumentCustomModifiers
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
92public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
94ImmutableArray<CustomModifier> INamedTypeSymbol.GetTypeArgumentCustomModifiers(int ordinal)
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
88public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
1371Private 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)
92public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal)
48 references to GetTypeArgumentCustomModifiers
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
227AddCustomModifiersIfNeeded(symbol.GetTypeArgumentCustomModifiers(0), leadingSpace: true, trailingSpace: false);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (22)
Symbols\CustomModifiersTests.cs (22)
68Assert.Equal("System.Runtime.CompilerServices.IsLong", type.GetTypeArgumentCustomModifiers(0).Single().Modifier.ToTestDisplayString()); 69Assert.Throws<System.IndexOutOfRangeException>(() => type.GetTypeArgumentCustomModifiers(1)); 70Assert.Throws<System.IndexOutOfRangeException>(() => type.GetTypeArgumentCustomModifiers(-1)); 74Assert.True(nullable.GetTypeArgumentCustomModifiers(0).IsEmpty); 75Assert.Throws<System.IndexOutOfRangeException>(() => nullable.GetTypeArgumentCustomModifiers(1)); 76Assert.Throws<System.IndexOutOfRangeException>(() => nullable.GetTypeArgumentCustomModifiers(-1)); 80Assert.Throws<System.IndexOutOfRangeException>(() => i.GetTypeArgumentCustomModifiers(0)); 84Assert.True(nullable.GetTypeArgumentCustomModifiers(0).IsEmpty); 85Assert.Throws<System.IndexOutOfRangeException>(() => nullable.GetTypeArgumentCustomModifiers(1)); 86Assert.Throws<System.IndexOutOfRangeException>(() => nullable.GetTypeArgumentCustomModifiers(-1)); 139Assert.True(type.GetTypeArgumentCustomModifiers(0).IsEmpty); 140var modifiers = type.GetTypeArgumentCustomModifiers(1); 144Assert.Throws<System.IndexOutOfRangeException>(() => type.GetTypeArgumentCustomModifiers(2)); 145Assert.Throws<System.IndexOutOfRangeException>(() => type.GetTypeArgumentCustomModifiers(-1)); 149Assert.True(dictionary.GetTypeArgumentCustomModifiers(0).IsEmpty); 150Assert.True(dictionary.GetTypeArgumentCustomModifiers(1).IsEmpty); 151Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.GetTypeArgumentCustomModifiers(2)); 152Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.GetTypeArgumentCustomModifiers(-1)); 157Assert.True(dictionary.GetTypeArgumentCustomModifiers(0).IsEmpty); 158Assert.True(dictionary.GetTypeArgumentCustomModifiers(1).IsEmpty); 159Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.GetTypeArgumentCustomModifiers(2)); 160Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.GetTypeArgumentCustomModifiers(-1));
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
89=> _symbol.GetTypeArgumentCustomModifiers(ordinal);
Microsoft.CodeAnalysis.VisualBasic (2)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
511AddCustomModifiersIfRequired(modifiersSource.GetTypeArgumentCustomModifiers(i))
Symbols\NamedTypeSymbol.vb (1)
1371Private Function INamedTypeSymbol_GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) Implements INamedTypeSymbol.GetTypeArgumentCustomModifiers
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (22)
SymbolsTests\CustomModifiersTests.vb (22)
64Assert.Equal("System.Runtime.CompilerServices.IsLong", type.GetTypeArgumentCustomModifiers(0).Single().Modifier.ToTestDisplayString()) 65Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.GetTypeArgumentCustomModifiers(1)) 66Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.GetTypeArgumentCustomModifiers(-1)) 70Assert.True(nullable.GetTypeArgumentCustomModifiers(0).IsEmpty) 71Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.GetTypeArgumentCustomModifiers(1)) 72Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.GetTypeArgumentCustomModifiers(-1)) 76Assert.Throws(Of System.IndexOutOfRangeException)(Sub() i.GetTypeArgumentCustomModifiers(0)) 80Assert.True(nullable.GetTypeArgumentCustomModifiers(0).IsEmpty) 81Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.GetTypeArgumentCustomModifiers(1)) 82Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.GetTypeArgumentCustomModifiers(-1)) 133Assert.True(type.GetTypeArgumentCustomModifiers(0).IsEmpty) 134Dim modifiers = type.GetTypeArgumentCustomModifiers(1) 138Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.GetTypeArgumentCustomModifiers(2)) 139Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.GetTypeArgumentCustomModifiers(-1)) 143Assert.True(dictionary.GetTypeArgumentCustomModifiers(0).IsEmpty) 144Assert.True(dictionary.GetTypeArgumentCustomModifiers(1).IsEmpty) 145Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.GetTypeArgumentCustomModifiers(2)) 146Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.GetTypeArgumentCustomModifiers(-1)) 151Assert.True(dictionary.GetTypeArgumentCustomModifiers(0).IsEmpty) 152Assert.True(dictionary.GetTypeArgumentCustomModifiers(1).IsEmpty) 153Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.GetTypeArgumentCustomModifiers(2)) 154Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.GetTypeArgumentCustomModifiers(-1))