Base:
property
ParameterList
Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax.ParameterList
68 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)
12518if (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) 12529public 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); 12531public 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); 12532public 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); 12533public 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); 12534public 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); 12535public 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); 12536public 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); 12540public 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); 12542public 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); 12544public 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); 12551public 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)
5305Assert.NotEqual(default, ps.ParameterList.OpenParenToken); 5306Assert.NotEqual(default, ps.ParameterList.CloseParenToken); 5309Assert.Equal(2, ps.ParameterList.Parameters.Count); 5311Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5312Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5313Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5314Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5315Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5316Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5318Assert.Equal(0, ps.ParameterList.Parameters[1].AttributeLists.Count); 5319Assert.Equal(0, ps.ParameterList.Parameters[1].Modifiers.Count); 5320Assert.NotNull(ps.ParameterList.Parameters[1].Type); 5321Assert.Equal("e", ps.ParameterList.Parameters[1].Type.ToString()); 5322Assert.NotEqual(default, ps.ParameterList.Parameters[1].Identifier); 5323Assert.Equal("f", ps.ParameterList.Parameters[1].Identifier.ToString()); 5385Assert.NotEqual(default, ps.ParameterList.OpenParenToken); 5386Assert.NotEqual(default, ps.ParameterList.CloseParenToken); 5389Assert.Equal(2, ps.ParameterList.Parameters.Count); 5391Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5392Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5393Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5394Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5395Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5396Assert.Equal("d", ps.ParameterList.Parameters[0].Identifier.ToString()); 5398Assert.Equal(0, ps.ParameterList.Parameters[1].AttributeLists.Count); 5399Assert.Equal(0, ps.ParameterList.Parameters[1].Modifiers.Count); 5400Assert.NotNull(ps.ParameterList.Parameters[1].Type); 5401Assert.Equal("e", ps.ParameterList.Parameters[1].Type.ToString()); 5402Assert.NotEqual(default, ps.ParameterList.Parameters[1].Identifier); 5403Assert.Equal("f", ps.ParameterList.Parameters[1].Identifier.ToString()); 5499Assert.NotEqual(default, ps.ParameterList.OpenParenToken); 5500Assert.NotEqual(default, ps.ParameterList.CloseParenToken); 5503Assert.Equal(1, ps.ParameterList.Parameters.Count); 5505Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5506Assert.Equal(0, ps.ParameterList.Parameters[0].Modifiers.Count); 5507Assert.NotNull(ps.ParameterList.Parameters[0].Type); 5508Assert.Equal("c", ps.ParameterList.Parameters[0].Type.ToString()); 5509Assert.NotEqual(default, ps.ParameterList.Parameters[0].Identifier); 5510Assert.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.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);