111 references to ParameterList
Microsoft.CodeAnalysis.CSharp (14)
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
275AddParameterListInitializersAndAttributes(t.ParameterList, codeBlocks);
Symbols\Source\SourcePropertySymbol.cs (1)
824=> (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)
13396if (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) 13407public new IndexerDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13409public new IndexerDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13411public new IndexerDeclarationSyntax WithType(TypeSyntax type) => Update(this.AttributeLists, this.Modifiers, type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13413public new IndexerDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.AttributeLists, this.Modifiers, this.Type, explicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13414public IndexerDeclarationSyntax WithThisKeyword(SyntaxToken thisKeyword) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, thisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, this.SemicolonToken); 13417public new IndexerDeclarationSyntax WithAccessorList(AccessorListSyntax? accessorList) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, accessorList, this.ExpressionBody, this.SemicolonToken); 13418public IndexerDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, expressionBody, this.SemicolonToken); 13419public IndexerDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.AccessorList, this.ExpressionBody, semicolonToken); 13425public 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)
613IndexerDeclarationSyntax 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)
4958Assert.NotNull(ps.ParameterList); // used with indexer property 4959Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 4960Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 4961Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 4962Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 4963Assert.Equal(1, ps.ParameterList.Parameters.Count); 4964Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 4965Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 4966Assert.NotNull(ps.ParameterList.Parameters[0].Type); 4967Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 4968Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 4969Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5025Assert.NotNull(ps.ParameterList); // used with indexer property 5026Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 5027Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 5028Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 5029Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 5030Assert.Equal(1, ps.ParameterList.Parameters.Count); 5031Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5032Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5033Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5034Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5035Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5036Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5093Assert.NotNull(ps.ParameterList); // used with indexer property 5094Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 5095Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 5096Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 5097Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 5098Assert.Equal(1, ps.ParameterList.Parameters.Count); 5099Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5100Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5101Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5102Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5103Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5104Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5160Assert.NotNull(ps.ParameterList); // used with indexer property 5161Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 5162Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 5163Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 5164Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 5166Assert.Equal(2, ps.ParameterList.Parameters.Count); 5168Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5169Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5170Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5171Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5172Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5173Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5175Assert.Equal(0, ps.ParameterList.Parameters[1].AttributeLists.Count); 5176Assert.Equal(0, ps.ParameterList.Parameters[1].Modifiers.Count); 5177Assert.NotNull(ps.ParameterList.Parameters[1].Type); 5178Assert.Equal("e", ps.ParameterList.Parameters[1].Type.ToString()); 5179Assert.NotEqual(default, ps.ParameterList.Parameters[1].Identifier); 5180Assert.Equal("f", ps.ParameterList.Parameters[1].Identifier.ToString()); 5238Assert.NotNull(ps.ParameterList); // used with indexer property 5239Assert.NotEqual(default, ps.ParameterList.OpenBracketToken); 5240Assert.Equal(SyntaxKind.OpenBracketToken, ps.ParameterList.OpenBracketToken.Kind()); 5241Assert.NotEqual(default, ps.ParameterList.CloseBracketToken); 5242Assert.Equal(SyntaxKind.CloseBracketToken, ps.ParameterList.CloseBracketToken.Kind()); 5243Assert.Equal(1, ps.ParameterList.Parameters.Count); 5244Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5245Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5246Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5247Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5248Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5249Assert.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);