111 references to ParameterList
Microsoft.CodeAnalysis.CSharp (14)
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
275AddParameterListInitializersAndAttributes(t.ParameterList, codeBlocks);
Symbols\Source\SourcePropertySymbol.cs (1)
823=> (syntax as IndexerDeclarationSyntax)?.ParameterList;
Syntax.xml.Main.Generated.cs (1)
2086=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.ThisKeyword), (BracketedParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (AccessorListSyntax?)Visit(node.AccessorList), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (11)
13397if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || type != this.Type || explicitInterfaceSpecifier != this.ExplicitInterfaceSpecifier || thisKeyword != this.ThisKeyword || parameterList != this.ParameterList || accessorList != this.AccessorList || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken) 13408public new IndexerDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13410public new IndexerDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13412public new IndexerDeclarationSyntax WithType(TypeSyntax type) => Update(this.AttributeLists, this.Modifiers, type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13414public new IndexerDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.AttributeLists, this.Modifiers, this.Type, explicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13415public IndexerDeclarationSyntax WithThisKeyword(SyntaxToken thisKeyword) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, thisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13418public new IndexerDeclarationSyntax WithAccessorList(AccessorListSyntax? accessorList) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, accessorList, this.ExpressionBody, this.SemicolonToken); 13419public IndexerDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, expressionBody, this.SemicolonToken); 13420public IndexerDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, semicolonToken); 13426public IndexerDeclarationSyntax AddParameterListParameters(params ParameterSyntax[] items) => WithParameterList(this.ParameterList.WithParameters(this.ParameterList.Parameters.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
151IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.ParameterList,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
254EqualParameterCount(x.ParameterList, y.ParameterList, out result);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
607IndexerDeclarationSyntax indexerNode => indexerNode.ParameterList.Span.End,
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
608var (openBracket, closeBracket) = indexerDeclarationNode.ParameterList.GetBrackets();
Microsoft.CodeAnalysis.CSharp.Features (9)
ChangeSignature\CSharpChangeSignatureService.cs (2)
347var updatedParameters = UpdateDeclaration(indexer.ParameterList.Parameters, signaturePermutation, CreateNewParameterSyntax); 348return indexer.WithParameterList(indexer.ParameterList.WithParameters(updatedParameters).WithAdditionalAnnotations(ChangeSignatureFormattingAnnotation));
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
138var parameterList = indexerDeclaration.ParameterList;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
408AccessorDeclarationSyntax { Parent.Parent: IndexerDeclarationSyntax { ParameterList: var list } } => list, 1702return GetDiagnosticSpan(indexerDeclaration.Modifiers, indexerDeclaration.Type, indexerDeclaration.ParameterList);
Organizing\Organizers\IndexerDeclarationOrganizer.cs (1)
35parameterList: syntax.ParameterList,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
322indexerDeclaration.ParameterList.Parameters,
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
275AddParameterListInitializersAndAttributes(t.ParameterList, codeBlocks);
Structure\Providers\IndexerDeclarationStructureProvider.cs (1)
43indexerDeclaration.ParameterList.GetLastToken(includeZeroWidth: true),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
335var paramDecl = indexerDecl.ParameterList.Parameters[0];
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (69)
Generated\Syntax.Test.xml.Generated.cs (2)
13582Assert.NotNull(node.ParameterList); 13586var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithType(node.Type).WithExplicitInterfaceSpecifier(node.ExplicitInterfaceSpecifier).WithThisKeyword(node.ThisKeyword).WithParameterList(node.ParameterList).WithAccessorList(node.AccessorList).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (66)
5012Assert.NotNull(ps.ParameterList); // used with indexer property 5013Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 5014Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 5015Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 5016Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 5017Assert.Equal(1, ps.ParameterList.Parameters.Count); 5018Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5019Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5020Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5021Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5022Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5023Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5079Assert.NotNull(ps.ParameterList); // used with indexer property 5080Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 5081Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 5082Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 5083Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 5084Assert.Equal(1, ps.ParameterList.Parameters.Count); 5085Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5086Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5087Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5088Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5089Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5090Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5147Assert.NotNull(ps.ParameterList); // used with indexer property 5148Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 5149Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 5150Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 5151Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 5152Assert.Equal(1, ps.ParameterList.Parameters.Count); 5153Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5154Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5155Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5156Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5157Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5158Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5214Assert.NotNull(ps.ParameterList); // used with indexer property 5215Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 5216Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 5217Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 5218Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 5220Assert.Equal(2, ps.ParameterList.Parameters.Count); 5222Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5223Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5224Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5225Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5226Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5227Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5229Assert.Equal(0, ps.ParameterList.Parameters[1].AttributeLists.Count); 5230Assert.Equal(0, ps.ParameterList.Parameters[1].Modifiers.Count); 5231Assert.NotNull(ps.ParameterList.Parameters[1].Type); 5232Assert.Equal("e", ps.ParameterList.Parameters[1].Type.ToString()); 5233Assert.NotEqual(default, ps.ParameterList.Parameters[1].Identifier); 5234Assert.Equal("f", ps.ParameterList.Parameters[1].Identifier.ToString()); 5292Assert.NotNull(ps.ParameterList); // used with indexer property 5293Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 5294Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 5295Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 5296Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 5297Assert.Equal(1, ps.ParameterList.Parameters.Count); 5298Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5299Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5300Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5301Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5302Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5303Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString());
Parsing\ParserErrorMessageTests.cs (1)
3783Assert.Equal(SyntaxKind.InKeyword, indexerDeclaration.ParameterList.Parameters.Single().Modifiers.Single().Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
505=> GetSuffix('[', ']', indexer.ParameterList.Parameters);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
151IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.ParameterList,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
254EqualParameterCount(x.ParameterList, y.ParameterList, out result);
Microsoft.VisualStudio.LanguageServices.CSharp (6)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (2)
340oldIndexer.ParameterList.Parameters.AsReadOnlyList(), 341newIndexer.ParameterList.Parameters.AsReadOnlyList(),
CodeModel\CSharpCodeModelService.cs (3)
1458return indexer.ParameterList.Parameters; 3479var parameterList = indexer.ParameterList.Parameters.Insert(index, (ParameterSyntax)parameter); 3480return indexer.WithParameterList(indexer.ParameterList.WithParameters(parameterList));
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
234AppendParameterList(builder, indexerDeclaration.ParameterList);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
151IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.ParameterList,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
254EqualParameterCount(x.ParameterList, y.ParameterList, out result);