61 references to TypeParameterList
Microsoft.CodeAnalysis.CSharp (26)
_generated\0\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\2\Syntax.xml.Syntax.Generated.cs (12)
12664
if (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)
12675
public 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);
12677
public 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);
12678
public 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);
12679
public 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);
12680
public 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);
12683
public 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);
12684
public 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);
12686
public 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);
12688
public 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);
12690
public 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);
12698
var typeParameterList = this.
TypeParameterList
?? SyntaxFactory.TypeParameterList();
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
176
if (usage != NodeUsage.Normal && methodDecl.
TypeParameterList
!= null)
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
319
if (node is MethodDeclarationSyntax methodDecl && methodDecl.
TypeParameterList
!= null)
321
AddTypeParameterListAttributes(methodDecl.
TypeParameterList
, codeBlocks);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (6)
172
BindTypeParameterConstraintClauses(this, TypeParameters, syntax.
TypeParameterList
, syntax.ConstraintClauses,
1114
syntax.
TypeParameterList
,
1141
syntax.
TypeParameterList
,
1169
Debug.Assert(syntax.
TypeParameterList
!= null);
1171
MessageID.IDS_FeatureGenerics.CheckFeatureAvailability(diagnostics, syntax.
TypeParameterList
.LessThanToken);
1183
var typeParameters = syntax.
TypeParameterList
.Parameters;
Syntax\LookupPosition.cs (2)
203
if (methodDecl.
TypeParameterList
== null)
223
var firstPostNameToken = methodDecl.
TypeParameterList
.LessThanToken;
Syntax\MethodDeclarationSyntax.cs (2)
17
return this.
TypeParameterList
== null ? 0 : this.
TypeParameterList
.Parameters.Count;
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
59
methodDeclaration.
TypeParameterList
is not null ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
36
typeParameters = methodDeclaration.
TypeParameterList
?.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
118
return ((MethodDeclarationSyntax)member).
TypeParameterList
;
Microsoft.CodeAnalysis.CSharp.Features (13)
Completion\KeywordRecommenders\TypeVarKeywordRecommender.cs (1)
36
if (method != null && method.
TypeParameterList
== typeParameters)
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (1)
63
token.Parent.Parent is MethodDeclarationSyntax {
TypeParameterList
: not null }
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
242
typeParameterList: otherMethod.
TypeParameterList
,
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (5)
326
if (extensionMethod.
TypeParameterList
is null || movedTypeParameterCount == 0)
327
return extensionMethod.
TypeParameterList
;
330
if (extensionMethod.
TypeParameterList
.Parameters.Count == movedTypeParameterCount)
335
return extensionMethod.
TypeParameterList
.WithParameters(SeparatedList<TypeParameterSyntax>(
336
extensionMethod.
TypeParameterList
.Parameters.GetWithSeparators().Skip(movedTypeParameterCount * 2)));
Organizing\Organizers\MethodDeclarationOrganizer.cs (1)
35
typeParameterList: syntax.
TypeParameterList
,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
196
AppendTypeParameterList(nameBuilder, methodDeclaration.
TypeParameterList
);
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
59
methodDeclaration.
TypeParameterList
is not null ||
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
319
if (node is MethodDeclarationSyntax methodDecl && methodDecl.
TypeParameterList
!= null)
321
AddTypeParameterListAttributes(methodDecl.
TypeParameterList
, codeBlocks);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (3)
359
typeParameterCount: method.
TypeParameterList
?.Parameters.Count ?? 0));
491
=> GetTypeParameterSuffix(method.
TypeParameterList
) +
638
var typeParameterNames = methodDeclaration.
TypeParameterList
?.Parameters.SelectAsArray(p => p.Identifier.Text);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
36
typeParameters = methodDeclaration.
TypeParameterList
?.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
118
return ((MethodDeclarationSyntax)member).
TypeParameterList
;
Microsoft.Interop.ComInterfaceGenerator (4)
Analyzers\VtableIndexStubDiagnosticsAnalyzer.cs (1)
111
if (methodSyntax.
TypeParameterList
is not null
ComInterfaceGenerator.cs (1)
387
methodSyntax.
TypeParameterList
),
ComMethodInfo.cs (1)
121
if (comMethodDeclaringSyntax.
TypeParameterList
is not null
VtableIndexStubGenerator.cs (1)
347
var methodSyntaxTemplate = new ContainingSyntax(new SyntaxTokenList(syntax.Modifiers.Where(static m => !m.IsKind(SyntaxKind.PartialKeyword) && !m.IsKind(SyntaxKind.VirtualKeyword))).StripAccessibilityModifiers(), SyntaxKind.MethodDeclaration, syntax.Identifier, syntax.
TypeParameterList
);
Microsoft.Interop.JavaScript.JSImportGenerator (3)
Analyzers\JSImportExportDiagnosticsAnalyzer.cs (1)
161
if (methodSyntax.
TypeParameterList
is not null
JSExportGenerator.cs (1)
178
var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.
TypeParameterList
);
JSImportGenerator.cs (1)
167
var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.
TypeParameterList
);
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\LibraryImportDiagnosticsAnalyzer.cs (1)
358
if (methodSyntax.
TypeParameterList
is not null
LibraryImportGenerator.cs (1)
281
var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.
TypeParameterList
);
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (1)
362
if (methodSyntax.
TypeParameterList
is not null
DownlevelLibraryImportGenerator.cs (1)
231
var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.
TypeParameterList
);
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
36
typeParameters = methodDeclaration.
TypeParameterList
?.Parameters;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
118
return ((MethodDeclarationSyntax)member).
TypeParameterList
;
SuperFileCheck (1)
Program.cs (1)
173
var typeArity = methodDecl.
TypeParameterList
?.ChildNodes().Count();