37 references to ParameterList
ILLink.CodeFixProvider (1)
RequiresUnsafeCodeFixProvider.cs (1)
528
if (localFunc.
ParameterList
.GetTrailingTrivia().Any(t => t.IsDirective))
Microsoft.CodeAnalysis.CSharp (19)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1846
=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), 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)
6441
if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || returnType != this.ReturnType || identifier != this.Identifier || typeParameterList != this.TypeParameterList || parameterList != this.
ParameterList
|| constraintClauses != this.ConstraintClauses || body != this.Body || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken)
6452
public new LocalFunctionStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.Identifier, this.TypeParameterList, this.
ParameterList
, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
6453
public LocalFunctionStatementSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.ReturnType, this.Identifier, this.TypeParameterList, this.
ParameterList
, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
6454
public LocalFunctionStatementSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.Modifiers, returnType, this.Identifier, this.TypeParameterList, this.
ParameterList
, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
6455
public LocalFunctionStatementSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, identifier, this.TypeParameterList, this.
ParameterList
, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
6456
public LocalFunctionStatementSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.Identifier, typeParameterList, this.
ParameterList
, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
6458
public LocalFunctionStatementSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.Identifier, this.TypeParameterList, this.
ParameterList
, constraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
6459
public LocalFunctionStatementSyntax WithBody(BlockSyntax? body) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.Identifier, this.TypeParameterList, this.
ParameterList
, this.ConstraintClauses, body, this.ExpressionBody, this.SemicolonToken);
6460
public LocalFunctionStatementSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.Identifier, this.TypeParameterList, this.
ParameterList
, this.ConstraintClauses, this.Body, expressionBody, this.SemicolonToken);
6461
public LocalFunctionStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.Identifier, this.TypeParameterList, this.
ParameterList
, this.ConstraintClauses, this.Body, this.ExpressionBody, semicolonToken);
6471
public LocalFunctionStatementSyntax AddParameterListParameters(params ParameterSyntax[] items) => WithParameterList(this.
ParameterList
.WithParameters(this.
ParameterList
.Parameters.AddRange(items)));
Binder\LocalScopeBinder.cs (1)
230
foreach (var parameter in decl.
ParameterList
.Parameters)
Symbols\Source\LocalFunctionSymbol.cs (4)
81
foreach (var param in syntax.
ParameterList
.Parameters)
206
this.Syntax.
ParameterList
,
213
foreach (var parameter in this.Syntax.
ParameterList
.Parameters)
334
var firstParam = Syntax.
ParameterList
.Parameters.FirstOrDefault();
Syntax\LookupPosition.cs (1)
447
return localFunctionStmt.
ParameterList
.GetLastToken();
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
153
LocalFunctionStatementSyntax localFunction => localFunction.
ParameterList
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
71
return node != null && IsOnHeader(root, position, node, node.
ParameterList
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
98
var seenDefaultArgumentValue = currentInvocation.ArgumentList.Arguments.Count < localFunction.
ParameterList
.Parameters.Count;
183
var parameterList = localFunctionWithNewParameters.
ParameterList
;
Microsoft.CodeAnalysis.CSharp.Features (7)
ChangeSignature\CSharpChangeSignatureService.cs (2)
333
var updatedParameters = UpdateDeclaration(localFunction.
ParameterList
.Parameters, signaturePermutation, CreateNewParameterSyntax);
334
return localFunction.WithParameterList(localFunction.
ParameterList
.WithParameters(updatedParameters).WithAdditionalAnnotations(ChangeSignatureFormattingAnnotation));
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
476
yield return localFunc.
ParameterList
;
EditAndContinue\SyntaxComparer.cs (1)
1028
parameters = GetDescendantTokensIgnoringSeparators(localFunction.
ParameterList
.Parameters);
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
400
AppendParameterList(nameBuilder, statement.
ParameterList
);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
98
var seenDefaultArgumentValue = currentInvocation.ArgumentList.Arguments.Count < localFunction.
ParameterList
.Parameters.Count;
183
var parameterList = localFunctionWithNewParameters.
ParameterList
;
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
193
parameterCount: localFunction.
ParameterList
.Parameters.Count,
496
GetSuffix('(', ')', method.
ParameterList
.Parameters);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
153
LocalFunctionStatementSyntax localFunction => localFunction.
ParameterList
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
71
return node != null && IsOnHeader(root, position, node, node.
ParameterList
);
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
153
LocalFunctionStatementSyntax localFunction => localFunction.
ParameterList
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
71
return node != null && IsOnHeader(root, position, node, node.
ParameterList
);