57 references to TypeParameterList
Microsoft.CodeAnalysis.CSharp (26)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
176if (usage != NodeUsage.Normal && methodDecl.TypeParameterList != null)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Syntax.xml.Main.Generated.cs (1)
2090=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Syntax.xml.Syntax.Generated.cs (12)
12664if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || returnType != this.ReturnType || explicitInterfaceSpecifier != this.ExplicitInterfaceSpecifier || identifier != this.Identifier || typeParameterList != this.TypeParameterList || parameterList != this.ParameterList || constraintClauses != this.ConstraintClauses || body != this.Body || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken) 12675public new MethodDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12677public new MethodDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12678public MethodDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.Modifiers, returnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12679public MethodDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, explicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12680public MethodDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12683public new MethodDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, parameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12684public MethodDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12686public new MethodDeclarationSyntax WithBody(BlockSyntax? body) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, body, this.ExpressionBody, this.SemicolonToken); 12688public new MethodDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, expressionBody, this.SemicolonToken); 12690public new MethodDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, semicolonToken); 12698var typeParameterList = this.TypeParameterList ?? SyntaxFactory.TypeParameterList();
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
319if (node is MethodDeclarationSyntax methodDecl && methodDecl.TypeParameterList != null) 321AddTypeParameterListAttributes(methodDecl.TypeParameterList, codeBlocks);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (6)
172BindTypeParameterConstraintClauses(this, TypeParameters, syntax.TypeParameterList, syntax.ConstraintClauses, 1114syntax.TypeParameterList, 1141syntax.TypeParameterList, 1169Debug.Assert(syntax.TypeParameterList != null); 1171MessageID.IDS_FeatureGenerics.CheckFeatureAvailability(diagnostics, syntax.TypeParameterList.LessThanToken); 1183var typeParameters = syntax.TypeParameterList.Parameters;
Syntax\LookupPosition.cs (2)
203if (methodDecl.TypeParameterList == null) 223var firstPostNameToken = methodDecl.TypeParameterList.LessThanToken;
Syntax\MethodDeclarationSyntax.cs (2)
17return this.TypeParameterList == null ? 0 : this.TypeParameterList.Parameters.Count;
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
59methodDeclaration.TypeParameterList is not null ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
36typeParameters = methodDeclaration.TypeParameterList?.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
118return ((MethodDeclarationSyntax)member).TypeParameterList;
Microsoft.CodeAnalysis.CSharp.Features (13)
Completion\KeywordRecommenders\TypeVarKeywordRecommender.cs (1)
36if (method != null && method.TypeParameterList == typeParameters)
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (1)
63token.Parent.Parent is MethodDeclarationSyntax { TypeParameterList: not null }
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
242typeParameterList: otherMethod.TypeParameterList,
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (5)
326if (extensionMethod.TypeParameterList is null || movedTypeParameterCount == 0) 327return extensionMethod.TypeParameterList; 330if (extensionMethod.TypeParameterList.Parameters.Count == movedTypeParameterCount) 335return extensionMethod.TypeParameterList.WithParameters(SeparatedList<TypeParameterSyntax>( 336extensionMethod.TypeParameterList.Parameters.GetWithSeparators().Skip(movedTypeParameterCount * 2)));
Organizing\Organizers\MethodDeclarationOrganizer.cs (1)
35typeParameterList: syntax.TypeParameterList,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
196AppendTypeParameterList(nameBuilder, methodDeclaration.TypeParameterList);
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
59methodDeclaration.TypeParameterList is not null ||
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
319if (node is MethodDeclarationSyntax methodDecl && methodDecl.TypeParameterList != null) 321AddTypeParameterListAttributes(methodDecl.TypeParameterList, codeBlocks);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (3)
359typeParameterCount: method.TypeParameterList?.Parameters.Count ?? 0)); 491=> GetTypeParameterSuffix(method.TypeParameterList) + 638var typeParameterNames = methodDeclaration.TypeParameterList?.Parameters.SelectAsArray(p => p.Identifier.Text);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
36typeParameters = methodDeclaration.TypeParameterList?.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
118return ((MethodDeclarationSyntax)member).TypeParameterList;
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\VtableIndexStubDiagnosticsAnalyzer.cs (1)
111if (methodSyntax.TypeParameterList is not null
ComMethodInfo.cs (1)
121if (comMethodDeclaringSyntax.TypeParameterList is not null
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Analyzers\JSImportExportDiagnosticsAnalyzer.cs (1)
161if (methodSyntax.TypeParameterList is not null
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\LibraryImportDiagnosticsAnalyzer.cs (1)
361if (methodSyntax.TypeParameterList is not null
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (1)
362if (methodSyntax.TypeParameterList is not null
Microsoft.Interop.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\ContainingTypeUtilities.cs (1)
46declaration.Identifier.Text + GetTypeParameters(declaration.TypeParameterList));
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
36typeParameters = methodDeclaration.TypeParameterList?.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
118return ((MethodDeclarationSyntax)member).TypeParameterList;
SuperFileCheck (1)
Program.cs (1)
173var typeArity = methodDecl.TypeParameterList?.ChildNodes().Count();
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\ContainingTypeUtilities.cs (1)
46declaration.Identifier.Text + GetTypeParameters(declaration.TypeParameterList));