7 implementations of ITypeParameterSymbol
GenerateDocumentationAndConfigFiles (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (1)
Roslyn.Diagnostics.Analyzers (1)
1011 references to ITypeParameterSymbol
Aspire.Hosting.Integration.Analyzers (3)
GenerateDocumentationAndConfigFiles (75)
ILLink.RoslynAnalyzer (20)
Microsoft.Analyzers.Extra (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (4)
Microsoft.CodeAnalysis (14)
Microsoft.CodeAnalysis.Analyzers (76)
Microsoft.CodeAnalysis.AnalyzerUtilities (50)
Microsoft.CodeAnalysis.CodeStyle (52)
Microsoft.CodeAnalysis.CodeStyle.Fixes (49)
Microsoft.CodeAnalysis.CSharp (39)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (28)
Microsoft.CodeAnalysis.CSharp.Features (34)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
Microsoft.CodeAnalysis.Extensions.Package (34)
Microsoft.CodeAnalysis.Features (148)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (10)
123ImmutableArray<ITypeParameterSymbol> capturedTypeParameters,
328string structName, ImmutableArray<ITypeParameterSymbol> typeParameters,
405ImmutableArray<ITypeParameterSymbol> typeParameters, bool addRenameAnnotation)
616string structName, ImmutableArray<ITypeParameterSymbol> typeParameters,
636string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters,
690SyntaxEditor editor, string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters,
750string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters,
780SyntaxEditor editor, string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters,
799Document document, Scope scope, bool isRecord, string structName, ImmutableArray<ITypeParameterSymbol> typeParameters,
911ImmutableArray<ITypeParameterSymbol> typeParameters, ImmutableArray<ISymbol> members)
ExtractMethod\MethodExtractor.Analyzer.cs (24)
126var sortedMap = new SortedDictionary<int, ITypeParameterSymbol>();
722private void AddTypeParametersToMap(IEnumerable<ITypeParameterSymbol> typeParameters, IDictionary<int, ITypeParameterSymbol> sortedMap)
724foreach (var typeParameter in typeParameters)
728private void AddTypeParameterToMap(ITypeParameterSymbol typeParameter, IDictionary<int, ITypeParameterSymbol> sortedMap)
749IDictionary<int, ITypeParameterSymbol> sortedMap)
755private void AppendMethodTypeParameterFromConstraint(SortedDictionary<int, ITypeParameterSymbol> sortedMap)
757var typeParametersInConstraint = new List<ITypeParameterSymbol>();
760foreach (var typeParameter in sortedMap.Values)
774foreach (var typeParameter in typeParametersInConstraint)
778private void AppendMethodTypeParameterUsedDirectly(MultiDictionary<ISymbol, SyntaxToken> symbolMap, IDictionary<int, ITypeParameterSymbol> sortedMap)
780foreach (var typeParameter in symbolMap.Keys.OfType<ITypeParameterSymbol>())
784private ImmutableArray<ITypeParameterSymbol> GetMethodTypeParametersInConstraintList(
787SortedDictionary<int, ITypeParameterSymbol> sortedMap)
799private void AppendTypeParametersInConstraintsUsedByConstructedTypeWithItsOwnConstraints(SortedDictionary<int, ITypeParameterSymbol> sortedMap)
802using var _2 = PooledHashSet<ITypeParameterSymbol>.GetInstance(out var candidates);
805foreach (var typeParameter in sortedMap.Values)
816foreach (var typeParameter in candidates)
821ITypeSymbol type, HashSet<ITypeSymbol> visited, HashSet<ITypeParameterSymbol> typeParameters)
839if (arguments[i] is ITypeParameterSymbol argument)
860private ImmutableArray<ITypeParameterSymbol> GetMethodTypeParametersInDeclaration(ITypeSymbol returnType, SortedDictionary<int, ITypeParameterSymbol> sortedMap)
Microsoft.CodeAnalysis.Razor.Compiler (4)
Microsoft.CodeAnalysis.ResxSourceGenerator (50)
Microsoft.CodeAnalysis.VisualBasic (33)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (14)
Microsoft.CodeAnalysis.VisualBasic.Features (16)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
Microsoft.CodeAnalysis.Workspaces (98)
Microsoft.DotNet.ApiCompatibility (5)
Microsoft.Extensions.Logging.Generators (7)
Microsoft.Extensions.Options.SourceGeneration (1)
Roslyn.Diagnostics.Analyzers (79)
Roslyn.Diagnostics.CSharp.Analyzers (19)
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
System.Text.Json.SourceGeneration (22)
Helpers\RoslynExtensions.cs (13)
219public static List<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol typeDef)
221var result = new List<ITypeParameterSymbol>();
226static void AppendEnclosing(INamedTypeSymbol? enclosing, List<ITypeParameterSymbol> list)
261public static bool TryUnifyWith(this ITypeSymbol pattern, ITypeSymbol target, IDictionary<ITypeParameterSymbol, ITypeSymbol> substitution)
263if (pattern is ITypeParameterSymbol patternParam)
343public static ITypeSymbol SubstituteTypeParameters(this Compilation compilation, ITypeSymbol type, IReadOnlyDictionary<ITypeParameterSymbol, ITypeSymbol> substitution)
345if (type is ITypeParameterSymbol param)
458IReadOnlyList<ITypeParameterSymbol> parameters,
459IReadOnlyDictionary<ITypeParameterSymbol, ITypeSymbol> substitution,
460[NotNullWhen(false)] out ITypeParameterSymbol? failedParameter,
463foreach (ITypeParameterSymbol param in parameters)
754if (returnType is ITypeParameterSymbol { HasNotNullConstraint: false })
776if (inputType is ITypeParameterSymbol { HasNotNullConstraint: false })