Base:
property
ParameterList
Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax.ParameterList
68 references to ParameterList
Microsoft.CodeAnalysis.CSharp (15)
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
110
return 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)
12518
if (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)
12529
public 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);
12531
public 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);
12532
public 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);
12533
public 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);
12534
public 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);
12535
public 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);
12536
public 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);
12540
public 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);
12542
public 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);
12544
public 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);
12551
public 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)
229
EqualParameterCount(x.
ParameterList
, y.
ParameterList
, out result);
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1686
return GetDiagnosticSpan(operatorDeclaration.Modifiers, operatorDeclaration.ReturnType, operatorDeclaration.
ParameterList
);
Organizing\Organizers\OperatorDeclarationOrganizer.cs (1)
34
syntax.
ParameterList
,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
225
AppendParameterList(nameBuilder, operatorDeclaration.
ParameterList
);
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
42
operatorDeclaration.
ParameterList
.GetLastToken(includeZeroWidth: true),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (42)
Generated\Syntax.Test.xml.Generated.cs (2)
13452
Assert.NotNull(node.
ParameterList
);
13456
var 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)
5305
Assert.NotEqual(default, ps.
ParameterList
.OpenParenToken);
5306
Assert.NotEqual(default, ps.
ParameterList
.CloseParenToken);
5309
Assert.Equal(2, ps.
ParameterList
.Parameters.Count);
5311
Assert.Equal(0, ps.
ParameterList
.Parameters[0].AttributeLists.Count);
5312
Assert.Equal(0, ps.
ParameterList
.Parameters[0].Modifiers.Count);
5313
Assert.NotNull(ps.
ParameterList
.Parameters[0].Type);
5314
Assert.Equal("c", ps.
ParameterList
.Parameters[0].Type.ToString());
5315
Assert.NotEqual(default, ps.
ParameterList
.Parameters[0].Identifier);
5316
Assert.Equal("d", ps.
ParameterList
.Parameters[0].Identifier.ToString());
5318
Assert.Equal(0, ps.
ParameterList
.Parameters[1].AttributeLists.Count);
5319
Assert.Equal(0, ps.
ParameterList
.Parameters[1].Modifiers.Count);
5320
Assert.NotNull(ps.
ParameterList
.Parameters[1].Type);
5321
Assert.Equal("e", ps.
ParameterList
.Parameters[1].Type.ToString());
5322
Assert.NotEqual(default, ps.
ParameterList
.Parameters[1].Identifier);
5323
Assert.Equal("f", ps.
ParameterList
.Parameters[1].Identifier.ToString());
5385
Assert.NotEqual(default, ps.
ParameterList
.OpenParenToken);
5386
Assert.NotEqual(default, ps.
ParameterList
.CloseParenToken);
5389
Assert.Equal(2, ps.
ParameterList
.Parameters.Count);
5391
Assert.Equal(0, ps.
ParameterList
.Parameters[0].AttributeLists.Count);
5392
Assert.Equal(0, ps.
ParameterList
.Parameters[0].Modifiers.Count);
5393
Assert.NotNull(ps.
ParameterList
.Parameters[0].Type);
5394
Assert.Equal("c", ps.
ParameterList
.Parameters[0].Type.ToString());
5395
Assert.NotEqual(default, ps.
ParameterList
.Parameters[0].Identifier);
5396
Assert.Equal("d", ps.
ParameterList
.Parameters[0].Identifier.ToString());
5398
Assert.Equal(0, ps.
ParameterList
.Parameters[1].AttributeLists.Count);
5399
Assert.Equal(0, ps.
ParameterList
.Parameters[1].Modifiers.Count);
5400
Assert.NotNull(ps.
ParameterList
.Parameters[1].Type);
5401
Assert.Equal("e", ps.
ParameterList
.Parameters[1].Type.ToString());
5402
Assert.NotEqual(default, ps.
ParameterList
.Parameters[1].Identifier);
5403
Assert.Equal("f", ps.
ParameterList
.Parameters[1].Identifier.ToString());
5499
Assert.NotEqual(default, ps.
ParameterList
.OpenParenToken);
5500
Assert.NotEqual(default, ps.
ParameterList
.CloseParenToken);
5503
Assert.Equal(1, ps.
ParameterList
.Parameters.Count);
5505
Assert.Equal(0, ps.
ParameterList
.Parameters[0].AttributeLists.Count);
5506
Assert.Equal(0, ps.
ParameterList
.Parameters[0].Modifiers.Count);
5507
Assert.NotNull(ps.
ParameterList
.Parameters[0].Type);
5508
Assert.Equal("c", ps.
ParameterList
.Parameters[0].Type.ToString());
5509
Assert.NotEqual(default, ps.
ParameterList
.Parameters[0].Identifier);
5510
Assert.Equal("d", ps.
ParameterList
.Parameters[0].Identifier.ToString());
Parsing\ParserErrorMessageTests.cs (1)
3786
Assert.Equal(SyntaxKind.InKeyword, operatorDeclaration.
ParameterList
.Parameters.Single().Modifiers.Single().Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
229
EqualParameterCount(x.
ParameterList
, y.
ParameterList
, out result);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
210
AppendParameterList(builder, operatorDeclaration.
ParameterList
);
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
229
EqualParameterCount(x.
ParameterList
, y.
ParameterList
, out result);