156 references to ParameterList
Microsoft.CodeAnalysis.CSharp (15)
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
176AddParameterListInitializersAndAttributes(t.ParameterList, attributes);
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
52Binder binder = delegateType.GetBinder(syntax.ParameterList); 267binder, this, syntax.ParameterList, out arglistToken,
Syntax.xml.Main.Generated.cs (1)
2011=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.DelegateKeyword), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (11)
11204if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || delegateKeyword != this.DelegateKeyword || returnType != this.ReturnType || identifier != this.Identifier || typeParameterList != this.TypeParameterList || parameterList != this.ParameterList || constraintClauses != this.ConstraintClauses || semicolonToken != this.SemicolonToken) 11215public new DelegateDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11217public new DelegateDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11218public DelegateDeclarationSyntax WithDelegateKeyword(SyntaxToken delegateKeyword) => Update(this.AttributeLists, this.Modifiers, delegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11219public DelegateDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, returnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11220public DelegateDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11221public DelegateDeclarationSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, typeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11223public DelegateDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.SemicolonToken); 11224public DelegateDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, semicolonToken); 11235public DelegateDeclarationSyntax 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)
149DelegateDeclarationSyntax delegateDeclaration => delegateDeclaration.ParameterList,
Microsoft.CodeAnalysis.CSharp.Features (5)
ChangeSignature\CSharpChangeSignatureService.cs (2)
353var updatedParameters = UpdateDeclaration(delegateDeclaration.ParameterList.Parameters, signaturePermutation, CreateNewParameterSyntax); 354return delegateDeclaration.WithParameterList(delegateDeclaration.ParameterList.WithParameters(updatedParameters).WithAdditionalAnnotations(ChangeSignatureFormattingAnnotation));
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1660return GetDiagnosticSpan(delegateDeclaration.Modifiers, delegateDeclaration.DelegateKeyword, delegateDeclaration.ParameterList);
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
115AppendParameterList(nameBuilder, delegateDeclaration.ParameterList);
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
176AddParameterListInitializersAndAttributes(t.ParameterList, attributes);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
840var symbol = model.GetDeclaredSymbol(delegateDecl.ParameterList.Parameters[0]);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (125)
Generated\Syntax.Test.xml.Generated.cs (2)
13233Assert.NotNull(node.ParameterList); 13236var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithDelegateKeyword(node.DelegateKeyword).WithReturnType(node.ReturnType).WithIdentifier(node.Identifier).WithTypeParameterList(node.TypeParameterList).WithParameterList(node.ParameterList).WithConstraintClauses(node.ConstraintClauses).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (121)
2010Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2011Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2012Assert.Equal(0, ds.ParameterList.Parameters.Count); 2013Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2014Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2037Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2038Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2039Assert.Equal(0, ds.ParameterList.Parameters.Count); 2040Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2041Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2065Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2066Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2067Assert.Equal(0, ds.ParameterList.Parameters.Count); 2068Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2069Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2112Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2113Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2114Assert.Equal(0, ds.ParameterList.Parameters.Count); 2115Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2116Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2158Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2159Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2161Assert.Equal(1, ds.ParameterList.Parameters.Count); 2162Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2163Assert.Equal(0, ds.ParameterList.Parameters[0].Modifiers.Count); 2164Assert.NotNull(ds.ParameterList.Parameters[0].Type); 2165Assert.Equal(typeText, ds.ParameterList.Parameters[0].Type.ToString()); 2166Assert.NotEqual(default, ds.ParameterList.Parameters[0].Identifier); 2167Assert.Equal("c", ds.ParameterList.Parameters[0].Identifier.ToString()); 2169Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2170Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2193Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2194Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2196Assert.Equal(1, ds.ParameterList.Parameters.Count); 2197Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2198Assert.Equal(0, ds.ParameterList.Parameters[0].Modifiers.Count); 2199Assert.NotNull(ds.ParameterList.Parameters[0].Type); 2200Assert.Equal("c", ds.ParameterList.Parameters[0].Type.ToString()); 2201Assert.NotEqual(default, ds.ParameterList.Parameters[0].Identifier); 2202Assert.Equal("d", ds.ParameterList.Parameters[0].Identifier.ToString()); 2204Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2205Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2228Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2229Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2231Assert.Equal(2, ds.ParameterList.Parameters.Count); 2232Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2233Assert.Equal(0, ds.ParameterList.Parameters[0].Modifiers.Count); 2234Assert.NotNull(ds.ParameterList.Parameters[0].Type); 2235Assert.Equal("c", ds.ParameterList.Parameters[0].Type.ToString()); 2236Assert.NotEqual(default, ds.ParameterList.Parameters[0].Identifier); 2237Assert.Equal("d", ds.ParameterList.Parameters[0].Identifier.ToString()); 2239Assert.Equal(0, ds.ParameterList.Parameters[1].AttributeLists.Count); 2240Assert.Equal(0, ds.ParameterList.Parameters[1].Modifiers.Count); 2241Assert.NotNull(ds.ParameterList.Parameters[1].Type); 2242Assert.Equal("e", ds.ParameterList.Parameters[1].Type.ToString()); 2243Assert.NotEqual(default, ds.ParameterList.Parameters[1].Identifier); 2244Assert.Equal("f", ds.ParameterList.Parameters[1].Identifier.ToString()); 2246Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2247Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2270Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2271Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2273Assert.Equal(1, ds.ParameterList.Parameters.Count); 2274Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2275Assert.Equal(1, ds.ParameterList.Parameters[0].Modifiers.Count); 2276Assert.Equal(SyntaxKind.RefKeyword, ds.ParameterList.Parameters[0].Modifiers[0].Kind()); 2277Assert.NotNull(ds.ParameterList.Parameters[0].Type); 2278Assert.Equal("c", ds.ParameterList.Parameters[0].Type.ToString()); 2279Assert.NotEqual(default, ds.ParameterList.Parameters[0].Identifier); 2280Assert.Equal("d", ds.ParameterList.Parameters[0].Identifier.ToString()); 2282Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2283Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2306Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2307Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2309Assert.Equal(1, ds.ParameterList.Parameters.Count); 2310Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2311Assert.Equal(1, ds.ParameterList.Parameters[0].Modifiers.Count); 2312Assert.Equal(SyntaxKind.OutKeyword, ds.ParameterList.Parameters[0].Modifiers[0].Kind()); 2313Assert.NotNull(ds.ParameterList.Parameters[0].Type); 2314Assert.Equal("c", ds.ParameterList.Parameters[0].Type.ToString()); 2315Assert.NotEqual(default, ds.ParameterList.Parameters[0].Identifier); 2316Assert.Equal("d", ds.ParameterList.Parameters[0].Identifier.ToString()); 2318Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2319Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2342Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2343Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2345Assert.Equal(1, ds.ParameterList.Parameters.Count); 2346Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2347Assert.Equal(1, ds.ParameterList.Parameters[0].Modifiers.Count); 2348Assert.Equal(SyntaxKind.ParamsKeyword, ds.ParameterList.Parameters[0].Modifiers[0].Kind()); 2349Assert.NotNull(ds.ParameterList.Parameters[0].Type); 2350Assert.Equal("c", ds.ParameterList.Parameters[0].Type.ToString()); 2351Assert.NotEqual(default, ds.ParameterList.Parameters[0].Identifier); 2352Assert.Equal("d", ds.ParameterList.Parameters[0].Identifier.ToString()); 2354Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2355Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2379Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2380Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2382Assert.Equal(1, ds.ParameterList.Parameters.Count); 2383Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2384Assert.Equal(0, ds.ParameterList.Parameters[0].Modifiers.Count); 2385Assert.Null(ds.ParameterList.Parameters[0].Type); 2386Assert.NotEqual(default, ds.ParameterList.Parameters[0].Identifier); 2388Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2389Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2412Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2413Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2415Assert.Equal(1, ds.ParameterList.Parameters.Count); 2416Assert.Equal(1, ds.ParameterList.Parameters[0].AttributeLists.Count); 2417Assert.Equal("[attr]", ds.ParameterList.Parameters[0].AttributeLists[0].ToString()); 2418Assert.Equal(0, ds.ParameterList.Parameters[0].Modifiers.Count); 2419Assert.NotNull(ds.ParameterList.Parameters[0].Type); 2420Assert.Equal("c", ds.ParameterList.Parameters[0].Type.ToString()); 2421Assert.NotEqual(default, ds.ParameterList.Parameters[0].Identifier); 2422Assert.Equal("d", ds.ParameterList.Parameters[0].Identifier.ToString()); 2424Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2425Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2463Assert.NotEqual(default, ds.ParameterList.OpenParenToken); 2464Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2465Assert.Equal(0, ds.ParameterList.Parameters.Count); 2466Assert.NotEqual(default, ds.ParameterList.CloseParenToken); 2467Assert.False(ds.ParameterList.CloseParenToken.IsMissing);
Parsing\ParserErrorMessageTests.cs (1)
3771Assert.Equal(SyntaxKind.InKeyword, delegateDeclaration.ParameterList.Parameters.Single().Modifiers.Single().Kind());
Syntax\SyntaxNodeTests.cs (1)
3477var paramList = delegateDecl.ParameterList;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
149DelegateDeclarationSyntax delegateDeclaration => delegateDeclaration.ParameterList,
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (4)
600oldDelegate.ParameterList.Parameters.AsReadOnlyList(), 601newDelegate.ParameterList.Parameters.AsReadOnlyList(), 638oldDelegate.ParameterList.Parameters.AsReadOnlyList(), 639newDelegate.ParameterList.Parameters.AsReadOnlyList(),
CodeModel\CSharpCodeModelService.cs (3)
1462return delegateDecl.ParameterList.Parameters; 3484var parameterList = delegateDeclaration.ParameterList.Parameters.Insert(index, (ParameterSyntax)parameter); 3485return delegateDeclaration.WithParameterList(delegateDeclaration.ParameterList.WithParameters(parameterList));
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
149DelegateDeclarationSyntax delegateDeclaration => delegateDeclaration.ParameterList,