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