5 overrides of TypeParameterList
Microsoft.CodeAnalysis.CSharp (5)
Syntax.xml.Syntax.Generated.cs (5)
10353public override TypeParameterListSyntax? TypeParameterList => GetRed(ref this.typeParameterList, 4); 10519public override TypeParameterListSyntax? TypeParameterList => GetRed(ref this.typeParameterList, 4); 10685public override TypeParameterListSyntax? TypeParameterList => GetRed(ref this.typeParameterList, 4); 10859public override TypeParameterListSyntax? TypeParameterList => GetRed(ref this.typeParameterList, 5); 11348public override TypeParameterListSyntax? TypeParameterList => GetRed(ref this.typeParameterList, 3);
71 references to TypeParameterList
Microsoft.CodeAnalysis.CSharp (7)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
780if (parent.TypeParameterList != null)
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
135AddTypeParameterListAttributes(t.TypeParameterList, attributes);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
168tpl = ((TypeDeclarationSyntax)typeDecl).TypeParameterList; 479typeParameterList = typeDeclaration.TypeParameterList;
Syntax\LookupPosition.cs (1)
113var typeParameterListOpt = typeDecl.TypeParameterList;
Syntax\TypeDeclarationSyntax.cs (2)
17return this.TypeParameterList == null ? 0 : this.TypeParameterList.Parameters.Count;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
111return ((TypeDeclarationSyntax)member).TypeParameterList;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
34if (node is TypeDeclarationSyntax { TypeParameterList.GreaterThanToken: var greaterThanToken })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
277var constructorTrivia = typeDeclaration.TypeParameterList?.GetTrailingTrivia() ?? 428typeDeclaration.TypeParameterList?.WithTrailingTrivia(ElasticMarker),
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
155var typeParameterList = currentTypeDeclaration.TypeParameterList; 424var typeParameterList = currentTypeDeclaration.TypeParameterList;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
619return typeDecl.TypeParameterList == node;
Microsoft.CodeAnalysis.CSharp.Features (17)
CodeRefactorings\MoveType\CSharpMoveTypeService.cs (1)
24=> (syntax.Identifier.ValueText, syntax is TypeDeclarationSyntax { TypeParameterList.Parameters.Count: var arity } ? arity : 0);
Completion\KeywordRecommenders\TypeVarKeywordRecommender.cs (1)
24if (type != null && type.TypeParameterList == typeParameters)
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (2)
44if (decl != null && decl.TypeParameterList == typeParameters) 86if (typeDecl.TypeParameterList != null &&
EditAndContinue\BreakpointSpans.cs (2)
496if (typeDeclaration.TypeParameterList != null) 498foreach (var token in getDescendantTokens(typeDeclaration.TypeParameterList))
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
1269oldTypeDeclaration.TypeParameterList?.Span != newTypeDeclaration.TypeParameterList?.Span; 1644typeDeclaration.TypeParameterList ?? (SyntaxNodeOrToken)typeDeclaration.Identifier);
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
83AppendTypeParameterList(nameBuilder, typeDeclaration.TypeParameterList);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
277var constructorTrivia = typeDeclaration.TypeParameterList?.GetTrailingTrivia() ?? 428typeDeclaration.TypeParameterList?.WithTrailingTrivia(ElasticMarker),
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
155var typeParameterList = currentTypeDeclaration.TypeParameterList; 424var typeParameterList = currentTypeDeclaration.TypeParameterList;
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
135AddTypeParameterListAttributes(t.TypeParameterList, attributes);
Structure\Providers\TypeDeclarationStructureProvider.cs (2)
28var lastToken = typeDeclaration.TypeParameterList == null 30: typeDeclaration.TypeParameterList.GetLastToken(includeZeroWidth: true);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
884var symbol = model.GetDeclaredSymbol(typeDecl.TypeParameterList.Parameters[0]); 968var pt = typeDecl.TypeParameterList.Parameters[1];
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
LexicalAndXml\XmlDocCommentTests.cs (1)
2012var typeParameter = (tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).TypeParameterList.Parameters.Single();
Parsing\DeclarationParsingTests.cs (11)
1121Assert.Equal("<b>", cs.TypeParameterList.ToString()); 1224Assert.Equal("<b>", cs.TypeParameterList.ToString()); 1268Assert.Equal("<b>", cs.TypeParameterList.ToString()); 1309Assert.Equal("<b>", cs.TypeParameterList.ToString()); 1350Assert.Equal("<b>", cs.TypeParameterList.ToString()); 1405Assert.Equal("<b>", cs.TypeParameterList.ToString()); 1460Assert.Equal("<b>", cs.TypeParameterList.ToString()); 1506Assert.Equal("<b>", cs.TypeParameterList.ToString()); 1551Assert.Equal("<b>", cs.TypeParameterList.ToString()); 1635var gn = cs.TypeParameterList; 1666var gn = cs.TypeParameterList;
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
232GetTypeParameterSuffix(typeDeclaration.TypeParameterList), 242typeParameterCount: typeDeclaration.TypeParameterList?.Parameters.Count ?? 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
111return ((TypeDeclarationSyntax)member).TypeParameterList;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
34if (node is TypeDeclarationSyntax { TypeParameterList.GreaterThanToken: var greaterThanToken })
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
619return typeDecl.TypeParameterList == node;
Microsoft.DotNet.GenFacades (1)
TypeParser.cs (1)
112return GetTypeNameWithTypeParameter(actualType.TypeParameterList, typeName);
Microsoft.Extensions.Logging.Generators (5)
LoggerMessageGenerator.Parser.cs (5)
606if (typeDeclaration.TypeParameterList != null && 607typeDeclaration.TypeParameterList.Parameters.Count != 0) 613for (int i = 0; i < typeDeclaration.TypeParameterList.Parameters.Count; i++) 615TypeParameterSyntax parameter = typeDeclaration.TypeParameterList.Parameters[i]; 624return typeDeclaration.Identifier.ToString() + typeDeclaration.TypeParameterList;
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
130parents.Add($"partial {GetTypeKeyword(parent)} {parent.Identifier}{parent.TypeParameterList} {parent.ConstraintClauses}");
Microsoft.Gen.Logging (2)
Parsing\Parser.cs (2)
322Name = typeDec.Identifier.ToString() + typeDec.TypeParameterList, 343Name = parentLoggerClass.Identifier.ToString() + parentLoggerClass.TypeParameterList,
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
137Name = typeDeclaration.Identifier.ToString() + typeDeclaration.TypeParameterList, 159Name = parentMetricClass.Identifier.ToString() + parentMetricClass.TypeParameterList,
Microsoft.Gen.Metrics (2)
Parser.cs (2)
137Name = typeDeclaration.Identifier.ToString() + typeDeclaration.TypeParameterList, 159Name = parentMetricClass.Identifier.ToString() + parentMetricClass.TypeParameterList,
Microsoft.Gen.MetricsReports (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
137Name = typeDeclaration.Identifier.ToString() + typeDeclaration.TypeParameterList, 159Name = parentMetricClass.Identifier.ToString() + parentMetricClass.TypeParameterList,
Microsoft.Interop.SourceGeneration (1)
ContainingSyntaxContext.cs (1)
60typeDeclaration.TypeParameterList));
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
111return ((TypeDeclarationSyntax)member).TypeParameterList;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
34if (node is TypeDeclarationSyntax { TypeParameterList.GreaterThanToken: var greaterThanToken })
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
619return typeDecl.TypeParameterList == node;
System.Text.RegularExpressions.Generator (2)
RegexGenerator.Parser.cs (2)
208$"{typeDec.Identifier}{typeDec.TypeParameterList}"); 235$"{parent.Identifier}{parent.TypeParameterList}");