Base:
property
ParameterList
Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax.ParameterList
69 references to ParameterList
Microsoft.CodeAnalysis.CSharp (15)
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
110return GetSyntax().ParameterList.ParameterCount;
Syntax.xml.Main.Generated.cs (1)
2062=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.OperatorKeyword), VisitToken(node.CheckedKeyword), VisitToken(node.OperatorToken), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (13)
12519if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || returnType != this.ReturnType || explicitInterfaceSpecifier != this.ExplicitInterfaceSpecifier || operatorKeyword != this.OperatorKeyword || checkedKeyword != this.CheckedKeyword || operatorToken != this.OperatorToken || parameterList != this.ParameterList || body != this.Body || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken) 12530public new OperatorDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.OperatorToken, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12532public new OperatorDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.OperatorToken, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12533public OperatorDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.Modifiers, returnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.OperatorToken, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12534public OperatorDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, explicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.OperatorToken, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12535public OperatorDeclarationSyntax WithOperatorKeyword(SyntaxToken operatorKeyword) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, operatorKeyword, this.CheckedKeyword, this.OperatorToken, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12536public OperatorDeclarationSyntax WithCheckedKeyword(SyntaxToken checkedKeyword) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, checkedKeyword, this.OperatorToken, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12537public OperatorDeclarationSyntax WithOperatorToken(SyntaxToken operatorToken) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, operatorToken, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12541public new OperatorDeclarationSyntax WithBody(BlockSyntax? body) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.OperatorToken, this.ParameterList, body, this.ExpressionBody, this.SemicolonToken); 12543public new OperatorDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.OperatorToken, this.ParameterList, this.Body, expressionBody, this.SemicolonToken); 12545public new OperatorDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.OperatorToken, this.ParameterList, this.Body, this.ExpressionBody, semicolonToken); 12552public new OperatorDeclarationSyntax AddParameterListParameters(params ParameterSyntax[] items) => WithParameterList(this.ParameterList.WithParameters(this.ParameterList.Parameters.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
229EqualParameterCount(x.ParameterList, y.ParameterList, out result);
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1686return GetDiagnosticSpan(operatorDeclaration.Modifiers, operatorDeclaration.ReturnType, operatorDeclaration.ParameterList);
Organizing\Organizers\OperatorDeclarationOrganizer.cs (1)
34syntax.ParameterList,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
225AppendParameterList(nameBuilder, operatorDeclaration.ParameterList);
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
42operatorDeclaration.ParameterList.GetLastToken(includeZeroWidth: true),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (42)
Generated\Syntax.Test.xml.Generated.cs (2)
13452Assert.NotNull(node.ParameterList); 13456var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithReturnType(node.ReturnType).WithExplicitInterfaceSpecifier(node.ExplicitInterfaceSpecifier).WithOperatorKeyword(node.OperatorKeyword).WithCheckedKeyword(node.CheckedKeyword).WithOperatorToken(node.OperatorToken).WithParameterList(node.ParameterList).WithBody(node.Body).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (39)
5359Assert.NotEqual(default, ps.ParameterList.OpenParenToken); 5360Assert.NotEqual(default, ps.ParameterList.CloseParenToken); 5363Assert.Equal(2, ps.ParameterList.Parameters.Count); 5365Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5366Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5367Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5368Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5369Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5370Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5372Assert.Equal(0, ps.ParameterList.Parameters[1].AttributeLists.Count); 5373Assert.Equal(0, ps.ParameterList.Parameters[1].Modifiers.Count); 5374Assert.NotNull(ps.ParameterList.Parameters[1].Type); 5375Assert.Equal("e", ps.ParameterList.Parameters[1].Type.ToString()); 5376Assert.NotEqual(default, ps.ParameterList.Parameters[1].Identifier); 5377Assert.Equal("f", ps.ParameterList.Parameters[1].Identifier.ToString()); 5439Assert.NotEqual(default, ps.ParameterList.OpenParenToken); 5440Assert.NotEqual(default, ps.ParameterList.CloseParenToken); 5443Assert.Equal(2, ps.ParameterList.Parameters.Count); 5445Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5446Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5447Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5448Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5449Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5450Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5452Assert.Equal(0, ps.ParameterList.Parameters[1].AttributeLists.Count); 5453Assert.Equal(0, ps.ParameterList.Parameters[1].Modifiers.Count); 5454Assert.NotNull(ps.ParameterList.Parameters[1].Type); 5455Assert.Equal("e", ps.ParameterList.Parameters[1].Type.ToString()); 5456Assert.NotEqual(default, ps.ParameterList.Parameters[1].Identifier); 5457Assert.Equal("f", ps.ParameterList.Parameters[1].Identifier.ToString()); 5553Assert.NotEqual(default, ps.ParameterList.OpenParenToken); 5554Assert.NotEqual(default, ps.ParameterList.CloseParenToken); 5557Assert.Equal(1, ps.ParameterList.Parameters.Count); 5559Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5560Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5561Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5562Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5563Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5564Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString());
Parsing\ParserErrorMessageTests.cs (1)
3786Assert.Equal(SyntaxKind.InKeyword, operatorDeclaration.ParameterList.Parameters.Single().Modifiers.Single().Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
229EqualParameterCount(x.ParameterList, y.ParameterList, out result);
Microsoft.DotNet.GenAPI (1)
SyntaxRewriter\BodyBlockCSharpSyntaxRewriter.cs (1)
73rs.WithBody(GetThrowNullBody()).WithParameterList(rs.ParameterList.WithTrailingTrivia(SyntaxFactory.Space)) :
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
210AppendParameterList(builder, operatorDeclaration.ParameterList);
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
229EqualParameterCount(x.ParameterList, y.ParameterList, out result);