220 references to ParameterListSyntax
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
427
var
parameterList = node switch
Microsoft.CodeAnalysis.CSharp (95)
Compilation\MemberSemanticModel.cs (2)
840
var
paramList = parameter.Parent as
ParameterListSyntax
;
Compilation\SyntaxTreeSemanticModel.cs (5)
2036
if (parameter.Parent is not
ParameterListSyntax
{ Parent: ExtensionDeclarationSyntax extensionDecl })
2067
var
paramList = parameter.Parent as
ParameterListSyntax
;
2131
var
paramList = parameter.Parent as
ParameterListSyntax
;
Parser\LanguageParser.cs (17)
1756
var
paramList = CurrentToken.Kind == SyntaxKind.OpenParenToken || isExtension
1901
SyntaxToken? name, TypeParameterListSyntax typeParameters,
ParameterListSyntax
? paramList, BaseListSyntax? baseList, SyntaxListBuilder<TypeParameterConstraintClauseSyntax> constraints,
3361
var
paramList = this.ParseParenthesizedParameterList(forExtension: false);
3527
var
paramList = this.ParseParenthesizedParameterList(forExtension: false);
3739
var
paramList = this.ParseParenthesizedParameterList(forExtension: false);
3943
var
paramList = this.ParseParenthesizedParameterList(forExtension: false);
4556
internal
ParameterListSyntax
ParseParenthesizedParameterList(bool forExtension)
4558
if (this.IsIncrementalAndFactoryContextMatches && CanReuseParameterList(this.CurrentNode as CSharp.Syntax.
ParameterListSyntax
, allowOptionalIdentifier: forExtension))
4560
return (
ParameterListSyntax
)this.EatNode();
4578
private static bool CanReuseParameterList(Syntax.
ParameterListSyntax
list, bool allowOptionalIdentifier)
5514
var
paramList = ParseParenthesizedParameterList(forExtension: false);
5574
var
parameterList = this.ParseParenthesizedParameterList(forExtension: false);
8501
var
paramList = this.ParseParenthesizedParameterList(forExtension: false);
10612
ParameterListSyntax
paramList = this.ParseParenthesizedParameterList(forExtension: false);
13308
ParameterListSyntax
parameterList = null;
13445
var
paramList = this.ParseLambdaParameterList();
13477
private
ParameterListSyntax
ParseLambdaParameterList()
Symbols\Extensions\SynthesizedExtensionMarker.cs (5)
20
internal SynthesizedExtensionMarker(SourceMemberContainerTypeSymbol extensionType,
ParameterListSyntax
parameterList)
46
ParameterListSyntax
parameterList = (
ParameterListSyntax
)syntaxReferenceOpt.GetSyntax();
57
ParameterListSyntax
parameterList = (
ParameterListSyntax
)syntaxReferenceOpt.GetSyntax();
Symbols\Source\ParameterHelpers.cs (1)
67
ParameterListSyntax
syntax,
Symbols\Source\SourceConstructorSymbol.cs (1)
122
protected override
ParameterListSyntax
GetParameterList()
Symbols\Source\SourceConstructorSymbolBase.cs (2)
37
ParameterListSyntax
parameterList = GetParameterList();
80
protected abstract
ParameterListSyntax
GetParameterList();
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4746
ParameterListSyntax
? paramList = declaredMembersAndInitializers.DeclarationWithParameters?.ParameterList;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
78
protected override
ParameterListSyntax
GetParameterList()
Syntax\AnonymousMethodExpressionSyntax.cs (3)
19
public AnonymousMethodExpressionSyntax Update(SyntaxToken asyncKeyword, SyntaxToken delegateKeyword,
ParameterListSyntax
parameterList, CSharpSyntaxNode body)
31
public AnonymousMethodExpressionSyntax Update(SyntaxToken asyncKeyword, SyntaxToken delegateKeyword,
ParameterListSyntax
parameterList, BlockSyntax block, ExpressionSyntax expressionBody)
49
public static AnonymousMethodExpressionSyntax AnonymousMethodExpression(SyntaxToken asyncKeyword, SyntaxToken delegateKeyword,
ParameterListSyntax
parameterList, BlockSyntax block, ExpressionSyntax expressionBody)
Syntax\ConstructorDeclarationSyntax.cs (5)
17
ParameterListSyntax
parameterList,
41
ParameterListSyntax
parameterList,
58
ParameterListSyntax
parameterList,
76
ParameterListSyntax
parameterList,
93
ParameterListSyntax
parameterList,
Syntax\ConversionOperatorDeclarationSyntax.cs (2)
15
ParameterListSyntax
parameterList,
40
ParameterListSyntax
parameterList,
Syntax\DestructorDeclarationSyntax.cs (5)
18
ParameterListSyntax
parameterList,
41
ParameterListSyntax
parameterList,
58
ParameterListSyntax
parameterList,
75
ParameterListSyntax
parameterList,
92
ParameterListSyntax
parameterList,
Syntax\InternalSyntax\TypeDeclarationSyntax.cs (6)
20
ParameterListSyntax
parameterList,
37
ParameterListSyntax
parameterList,
69
ParameterListSyntax
parameterList,
101
ParameterListSyntax
parameterList,
134
ParameterListSyntax
parameterList,
166
ParameterListSyntax
parameterList,
Syntax\LocalFunctionStatementSyntax.cs (3)
12
public LocalFunctionStatementSyntax Update(SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax typeParameterList,
ParameterListSyntax
parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax body, ArrowExpressionClauseSyntax expressionBody, SyntaxToken semicolonToken)
24
public static LocalFunctionStatementSyntax LocalFunctionStatement(SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList,
ParameterListSyntax
parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
30
public static LocalFunctionStatementSyntax LocalFunctionStatement(SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList,
ParameterListSyntax
parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
Syntax\LookupPosition.cs (1)
123
internal static bool IsInParameterList(int position,
ParameterListSyntax
parameterList)
Syntax\MethodDeclarationSyntax.cs (1)
34
ParameterListSyntax
parameterList,
Syntax\OperatorDeclarationSyntax.cs (2)
15
ParameterListSyntax
parameterList,
40
ParameterListSyntax
parameterList,
Syntax\ParenthesizedLambdaExpressionSyntax.cs (9)
16
public ParenthesizedLambdaExpressionSyntax Update(SyntaxToken asyncKeyword,
ParameterListSyntax
parameterList, SyntaxToken arrowToken, CSharpSyntaxNode body)
30
public ParenthesizedLambdaExpressionSyntax Update(SyntaxToken asyncKeyword,
ParameterListSyntax
parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
33
public ParenthesizedLambdaExpressionSyntax Update(SyntaxTokenList modifiers,
ParameterListSyntax
parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
36
public ParenthesizedLambdaExpressionSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers,
ParameterListSyntax
parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
45
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxToken asyncKeyword,
ParameterListSyntax
parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
48
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(
ParameterListSyntax
parameterList, BlockSyntax? block, ExpressionSyntax? expressionBody)
51
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxTokenList modifiers,
ParameterListSyntax
parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
54
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxTokenList modifiers,
ParameterListSyntax
parameterList, BlockSyntax? block, ExpressionSyntax? expressionBody)
57
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers,
ParameterListSyntax
parameterList, BlockSyntax? block, ExpressionSyntax? expressionBody)
Syntax\RecordDeclarationSyntax.cs (3)
14
TypeParameterListSyntax? typeParameterList,
ParameterListSyntax
? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses,
28
TypeParameterListSyntax? typeParameterList,
ParameterListSyntax
? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses,
36
TypeParameterListSyntax? typeParameterList,
ParameterListSyntax
? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
Syntax\SyntaxExtensions.cs (2)
295
ParameterListSyntax
parameterList,
319
ParameterListSyntax
parameterList,
Syntax\SyntaxFactory.cs (17)
1815
public static
ParameterListSyntax
ParseParameterList(string text, int offset = 0, ParseOptions? options = null, bool consumeFullText = true)
1820
var
node = parser.ParseParenthesizedParameterList(forExtension: false);
1822
return (
ParameterListSyntax
)node.CreateRed();
2475
ParameterListSyntax
parameterList,
2496
ParameterListSyntax
parameterList,
2519
ParameterListSyntax
parameterList,
2542
ParameterListSyntax
parameterList,
2568
ParameterListSyntax
parameterList,
2591
ParameterListSyntax
parameterList,
2615
ParameterListSyntax
parameterList,
2638
ParameterListSyntax
parameterList,
2756
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(
ParameterListSyntax
parameterList, CSharpSyntaxNode body)
2761
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxToken asyncKeyword,
ParameterListSyntax
parameterList, SyntaxToken arrowToken, CSharpSyntaxNode body)
2769
public static AnonymousMethodExpressionSyntax AnonymousMethodExpression(
ParameterListSyntax
? parameterList, CSharpSyntaxNode body)
2774
public static AnonymousMethodExpressionSyntax AnonymousMethodExpression(SyntaxToken asyncKeyword, SyntaxToken delegateKeyword,
ParameterListSyntax
parameterList, CSharpSyntaxNode body)
2872
public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList,
ParameterListSyntax
? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2899
public static StructDeclarationSyntax StructDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList,
ParameterListSyntax
? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
Syntax\SyntaxFacts.cs (1)
528
internal static bool IsVarArg(this
ParameterListSyntax
parameterList)
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
33
Parent:
ParameterListSyntax
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
127
return ((DelegateDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
129
return ((MethodDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
131
return ((ConstructorDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
135
return ((OperatorDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
137
return ((ConversionOperatorDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
720
ParameterListSyntax
n => (n.OpenParenToken, n.CloseParenToken),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
875
void AppendParameterList(StringBuilder builder,
ParameterListSyntax
? parameterList)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (27)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (3)
61
var
parameterList = (
ParameterListSyntax
?)member
63
.FirstOrDefault(f => f is
ParameterListSyntax
);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
182
var
parameterList = localFunctionWithNewParameters.ParameterList;
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (6)
155
IMethodSymbol delegateMethod,
ParameterListSyntax
parameterList, bool makeStatic)
177
INamedTypeSymbol delegateType,
ParameterListSyntax
parameterList,
201
ParameterListSyntax
parameterList,
239
private static
ParameterListSyntax
GenerateParameterList(
269
private static
ParameterListSyntax
TryGetOrCreateParameterList(AnonymousFunctionExpressionSyntax anonymousFunction)
284
private static InvocationExpressionSyntax WithNewParameterNames(InvocationExpressionSyntax invocation, IMethodSymbol method,
ParameterListSyntax
newParameterList)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (7)
144
var
updatedParameterList = GenerateFinalParameterList();
243
ParameterListSyntax
GenerateFinalParameterList()
247
var
updatedParameterList = UpdateReferencesToNestedMembers(constructorDeclaration.ParameterList);
258
ParameterListSyntax
RemoveInModifierIfMemberIsRemoved(
ParameterListSyntax
parameterList)
279
ParameterListSyntax
UpdateReferencesToNestedMembers(
ParameterListSyntax
parameterList)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
114
var
parameterList = ParameterGenerator.GenerateParameterList(primaryConstructor.Parameters, isExplicit: false, info);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
19
public static
ParameterListSyntax
GenerateParameterList(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseParameterListSyntaxExtensions.cs (2)
14
ParameterListSyntax
list => list.OpenParenToken,
22
ParameterListSyntax
list => list.CloseParenToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
377
token.Parent.Parent is ParameterSyntax { Parent:
ParameterListSyntax
{ Parent: RecordDeclarationSyntax record } })
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
1064
token.Parent is
ParameterListSyntax
parameterList1 &&
1078
token.Parent is
ParameterListSyntax
parameterList2 &&
1099
parameter3.Parent is
ParameterListSyntax
parameterList3 &&
1118
if (parameter4 is { Parent:
ParameterListSyntax
parameterList4 } &&
1127
static bool IsSuitableParameterList(
ParameterListSyntax
parameterList, bool includeOperators)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\PrimaryConstructorTests.cs (4)
3992
var
parameterList = (
ParameterListSyntax
)context.Node;
5402
var
parameterList = (
ParameterListSyntax
)context.Node;
Semantics\RecordTests.cs (2)
26532
var
parameterList = (
ParameterListSyntax
)context.Node;
Microsoft.CodeAnalysis.CSharp.Features (32)
ChangeSignature\CSharpChangeSignatureService.cs (2)
231
var parameterList = matchingNode.ChildNodes().LastOrDefault(n => n is
ParameterListSyntax
);
385
var
emptyParameterList = ParameterList()
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
125
if (token.Parent is not null and
ParameterListSyntax
)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (2)
73
ParameterListSyntax
parameterList,
394
var
rewrittenParameterList = AddElementIndentation(typeDeclaration, constructor, constructor.ParameterList, static list => list.Parameters);
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (1)
293
var
parameterList = extensionMethod.ParameterList;
Debugging\BreakpointResolver.cs (1)
52
var
parameterList = SyntaxFactory.ParseParameterList(text, lengthOfParsedText, consumeFullText: false);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
66
/// <see cref="
ParameterListSyntax
"/> for primary constructors.
391
ParameterListSyntax
parameters => parameters.Parent!,
423
ParameterListSyntax
parameterList => parameterList,
EditAndContinue\DeclarationBody\PrimaryConstructorWithImplicitInitializerDeclarationBody.cs (1)
20
public
ParameterListSyntax
ParameterList
EditAndContinue\SyntaxUtilities.cs (1)
59
ParameterListSyntax
{ Parent: TypeDeclarationSyntax typeDeclaration }
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (1)
47
if (selectedParameter.Parent is not
ParameterListSyntax
{ Parent: TypeDeclarationSyntax(kind: SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration) typeDeclaration })
MoveToNamespace\CSharpMoveToNamespaceService.cs (1)
24
ParameterListSyntax
parameterList => parameterList.Parent as BaseTypeDeclarationSyntax,
src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
33
Parent:
ParameterListSyntax
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (3)
61
var
parameterList = (
ParameterListSyntax
?)member
63
.FirstOrDefault(f => f is
ParameterListSyntax
);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
182
var
parameterList = localFunctionWithNewParameters.ParameterList;
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (6)
155
IMethodSymbol delegateMethod,
ParameterListSyntax
parameterList, bool makeStatic)
177
INamedTypeSymbol delegateType,
ParameterListSyntax
parameterList,
201
ParameterListSyntax
parameterList,
239
private static
ParameterListSyntax
GenerateParameterList(
269
private static
ParameterListSyntax
TryGetOrCreateParameterList(AnonymousFunctionExpressionSyntax anonymousFunction)
284
private static InvocationExpressionSyntax WithNewParameterNames(InvocationExpressionSyntax invocation, IMethodSymbol method,
ParameterListSyntax
newParameterList)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (7)
144
var
updatedParameterList = GenerateFinalParameterList();
243
ParameterListSyntax
GenerateFinalParameterList()
247
var
updatedParameterList = UpdateReferencesToNestedMembers(constructorDeclaration.ParameterList);
258
ParameterListSyntax
RemoveInModifierIfMemberIsRemoved(
ParameterListSyntax
parameterList)
279
ParameterListSyntax
UpdateReferencesToNestedMembers(
ParameterListSyntax
parameterList)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RecordStructTests.cs (2)
6172
var
parameterList = (
ParameterListSyntax
)context.Node;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
Generated\Syntax.Test.xml.Generated.cs (11)
10482
=> SyntaxFactory.AnonymousMethodExpression(new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.DelegateKeyword), default(
ParameterListSyntax
), GenerateBlock(), default(ExpressionSyntax));
10809
=> SyntaxFactory.ClassDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.ClassKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(
ParameterListSyntax
), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10812
=> SyntaxFactory.StructDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.StructKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(
ParameterListSyntax
), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10815
=> SyntaxFactory.InterfaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(
ParameterListSyntax
), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10818
=> SyntaxFactory.RecordDeclaration(SyntaxKind.RecordDeclaration, new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Keyword"), default(SyntaxToken), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(
ParameterListSyntax
), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10830
=> SyntaxFactory.ExtensionDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.ExtensionKeyword), default(TypeParameterListSyntax), default(
ParameterListSyntax
), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10907
private static
ParameterListSyntax
GenerateParameterList()
13573
var
node = GenerateParameterList();
13578
var
newNode = node.WithOpenParenToken(node.OpenParenToken).WithParameters(node.Parameters).WithCloseParenToken(node.CloseParenToken);
19323
var
oldNode = GenerateParameterList();
19339
var
oldNode = GenerateParameterList();
Syntax\SyntaxNodeTests.cs (1)
3478
var
paramList = delegateDecl.ParameterList;
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
CodeGeneration\CSharpSyntaxGenerator.cs (6)
274
var
parameterList = AsParameterList(parameters);
347
private static
ParameterListSyntax
AsParameterList(IEnumerable<SyntaxNode>? parameters)
2135
var
newParameters = AsParameterList(parameters);
2224
return ((LocalFunctionStatementSyntax)declaration).WithParameterList((
ParameterListSyntax
)list);
2226
return ((ParenthesizedLambdaExpressionSyntax)declaration).WithParameterList((
ParameterListSyntax
)list);
2245
return ((TypeDeclarationSyntax)declaration).WithParameterList((
ParameterListSyntax
)list);
Simplification\CSharpSimplificationService.Expander.cs (2)
172
var
parameterList = parenthesizedLambda.ParameterList;
194
var
newParameterList = parameterList.WithParameters(newParameters);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
127
return ((DelegateDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
129
return ((MethodDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
131
return ((ConstructorDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
135
return ((OperatorDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
137
return ((ConversionOperatorDeclarationSyntax)member).WithParameterList((
ParameterListSyntax
)parameterList);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
720
ParameterListSyntax
n => (n.OpenParenToken, n.CloseParenToken),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
875
void AppendParameterList(StringBuilder builder,
ParameterListSyntax
? parameterList)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
114
var
parameterList = ParameterGenerator.GenerateParameterList(primaryConstructor.Parameters, isExplicit: false, info);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
19
public static
ParameterListSyntax
GenerateParameterList(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseParameterListSyntaxExtensions.cs (2)
14
ParameterListSyntax
list => list.OpenParenToken,
22
ParameterListSyntax
list => list.CloseParenToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
377
token.Parent.Parent is ParameterSyntax { Parent:
ParameterListSyntax
{ Parent: RecordDeclarationSyntax record } })
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
1064
token.Parent is
ParameterListSyntax
parameterList1 &&
1078
token.Parent is
ParameterListSyntax
parameterList2 &&
1099
parameter3.Parent is
ParameterListSyntax
parameterList3 &&
1118
if (parameter4 is { Parent:
ParameterListSyntax
parameterList4 } &&
1127
static bool IsSuitableParameterList(
ParameterListSyntax
parameterList, bool includeOperators)
Microsoft.Interop.ComInterfaceGenerator (1)
VirtualMethodPointerStubGenerator.cs (1)
149
(
ParameterListSyntax
unmanagedParameterList, TypeSyntax returnType, _) = stubGenerator.GenerateAbiMethodSignatureData();
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
441
(
ParameterListSyntax
parameterList, TypeSyntax returnType, AttributeListSyntax returnTypeAttributes) = stubGenerator.GenerateTargetMethodSignatureData();
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
317
(
ParameterListSyntax
parameterList, TypeSyntax returnType, AttributeListSyntax returnTypeAttributes) = stubGenerator.GenerateTargetMethodSignatureData();
Microsoft.Interop.SourceGeneration (3)
BoundGenerators.cs (1)
205
public (
ParameterListSyntax
ParameterList, TypeSyntax ReturnType, AttributeListSyntax? ReturnTypeAttributes) GenerateTargetMethodSignatureData(StubIdentifierContext context)
ManagedToNativeStubGenerator.cs (1)
196
public (
ParameterListSyntax
ParameterList, TypeSyntax ReturnType, AttributeListSyntax? ReturnTypeAttributes) GenerateTargetMethodSignatureData()
UnmanagedToManagedStubGenerator.cs (1)
108
public (
ParameterListSyntax
ParameterList, TypeSyntax ReturnType, AttributeListSyntax? ReturnTypeAttributes) GenerateAbiMethodSignatureData()
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckNameofFixProvider.cs (1)
114
var
paramList = (temp as MethodDeclarationSyntax)?.ParameterList
Microsoft.VisualStudio.LanguageServices.CSharp (5)
CodeModel\CSharpCodeModelService.cs (5)
1930
var
parameterList = (
ParameterListSyntax
)parameter.Parent!;
2827
var
parameterList = node.FirstAncestorOrSelf<
ParameterListSyntax
>();
2829
var
newParameterList = parameterList.RemoveNode(node, SyntaxRemoveOptions.KeepNoTrivia);