Base:
property
ParameterList
Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax.ParameterList
195 references to ParameterList
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
430MethodDeclarationSyntax methodDeclaration => methodDeclaration.ParameterList,
Microsoft.CodeAnalysis.CSharp (19)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (5)
100isExtensionMethod: syntax.ParameterList.Parameters.FirstOrDefault() is ParameterSyntax firstParam && 127signatureBinder, this, syntax.ParameterList, out _, 215var parameterSyntax = syntax.ParameterList.Parameters[0]; 248CheckExtensionAttributeAvailability(DeclaringCompilation, syntax.ParameterList.Parameters[0].Modifiers.FirstOrDefault(SyntaxKind.ThisKeyword).GetLocation(), diagnostics); 297protected sealed override int GetParameterCountFromSyntax() => GetSyntax().ParameterList.ParameterCount;
Syntax.xml.Main.Generated.cs (1)
2059=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (13)
12366if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || returnType != this.ReturnType || explicitInterfaceSpecifier != this.ExplicitInterfaceSpecifier || identifier != this.Identifier || typeParameterList != this.TypeParameterList || parameterList != this.ParameterList || constraintClauses != this.ConstraintClauses || body != this.Body || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken) 12377public new MethodDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12379public new MethodDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12380public MethodDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.Modifiers, returnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12381public MethodDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, explicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12382public MethodDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12383public MethodDeclarationSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, typeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12386public MethodDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken); 12388public new MethodDeclarationSyntax WithBody(BlockSyntax? body) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, body, this.ExpressionBody, this.SemicolonToken); 12390public new MethodDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, expressionBody, this.SemicolonToken); 12392public new MethodDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, semicolonToken); 12404public new MethodDeclarationSyntax AddParameterListParameters(params ParameterSyntax[] items) => WithParameterList(this.ParameterList.WithParameters(this.ParameterList.Parameters.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
73if (methodDeclaration.ParameterList.Parameters is [{ Identifier.ValueText: not "args" }])
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
65return node != null && IsOnHeader(root, position, node, node.ParameterList);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (2)
58!methodDeclaration.ParameterList.OpenParenToken.IsMissing && 59!methodDeclaration.ParameterList.CloseParenToken.IsMissing)
Microsoft.CodeAnalysis.CSharp.Features (14)
ChangeSignature\CSharpChangeSignatureService.cs (2)
323var updatedParameters = UpdateDeclaration(method.ParameterList.Parameters, signaturePermutation, CreateNewParameterSyntax); 324return method.WithParameterList(method.ParameterList.WithParameters(updatedParameters).WithAdditionalAnnotations(ChangeSignatureFormattingAnnotation));
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
96if (method.ParameterList.Parameters is [{ Type: ArrayTypeSyntax arrayType }])
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
243parameterList: otherMethod.ParameterList,
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (2)
72if (methodDeclaration.ParameterList.Parameters is not [var firstParameter, ..]) 294var parameterList = extensionMethod.ParameterList;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1678return GetDiagnosticSpan(methodDeclaration.Modifiers, methodDeclaration.ReturnType, methodDeclaration.ParameterList);
Organizing\Organizers\MethodDeclarationOrganizer.cs (1)
36parameterList: syntax.ParameterList,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (2)
179AppendParameterList(nameBuilder, methodDeclaration.ParameterList); 185(methodDeclaration.ParameterList is { Parameters: [var parameter, ..] } && parameter.Modifiers.Any(SyntaxKind.ThisKeyword));
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
73if (methodDeclaration.ParameterList.Parameters is [{ Identifier.ValueText: not "args" }])
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (2)
58!methodDeclaration.ParameterList.OpenParenToken.IsMissing && 59!methodDeclaration.ParameterList.CloseParenToken.IsMissing)
Structure\Providers\MethodDeclarationStructureProvider.cs (1)
42methodDeclaration.ParameterList.GetLastToken(includeZeroWidth: true),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\FunctionPointerTests.cs (2)
3679.Select(m => m.ParameterList.Parameters.Single().Type!) 3951.SelectMany(m => m.ParameterList.Parameters)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Compilation\SemanticModelAPITests.cs (4)
703var type = method.ParameterList.Parameters[0].Type; 1501var equalsValue = methodDecl.ParameterList.Parameters[0].Default; 1550var param = methodDecl.ParameterList.Parameters[0]; 2873TestGetSpeculativeSemanticModelForTypeSyntax_Common(model, methodDecl.ParameterList.Parameters.First().SpanStart,
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (8)
824var symbol = model.GetDeclaredSymbol(methodDecl.ParameterList.Parameters[0]); 860var symbol = model.GetDeclaredSymbol(methodDecl.ParameterList.Parameters[0]); 864symbol = model.GetDeclaredSymbol(methodDecl.ParameterList.Parameters[1]); 987var psym = model.GetDeclaredSymbol(memDecl.ParameterList.Parameters[0]); 1333var parameterDecl = (ParameterSyntax)methodDecl.ParameterList.Parameters[0]; 1345parameterDecl = (ParameterSyntax)methodDecl.ParameterList.Parameters[1]; 1436var parameterDecl = (ParameterSyntax)methodDecl.ParameterList.Parameters[0]; 1450parameterDecl = (ParameterSyntax)methodDecl.ParameterList.Parameters[1];
Symbols\FunctionPointerTypeSymbolTests.cs (8)
54.Single().ParameterList.Parameters 126.SelectMany(m => m.ParameterList.Parameters) 206.SelectMany(m => m.ParameterList.Parameters) 407.SelectMany(m => m.ParameterList.Parameters) 487.SelectMany(m => m.ParameterList.Parameters) 604.SelectMany(m => m.ParameterList.Parameters) 687.Single().ParameterList.Parameters 1694FunctionPointerUtilities.VerifyFunctionPointerSemanticInfo(model, mDeclSyntax.ParameterList.Parameters[0].Type!,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (115)
Generated\Syntax.Test.xml.Generated.cs (2)
13431Assert.NotNull(node.ParameterList); 13436var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithReturnType(node.ReturnType).WithExplicitInterfaceSpecifier(node.ExplicitInterfaceSpecifier).WithIdentifier(node.Identifier).WithTypeParameterList(node.TypeParameterList).WithParameterList(node.ParameterList).WithConstraintClauses(node.ConstraintClauses).WithBody(node.Body).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (111)
2506Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 2507Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2508Assert.Equal(0, ms.ParameterList.Parameters.Count); 2509Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 2510Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2551Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 2552Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2553Assert.Equal(0, ms.ParameterList.Parameters.Count); 2554Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 2555Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2597Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 2598Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2599Assert.Equal(0, ms.ParameterList.Parameters.Count); 2600Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 2601Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2705Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 2706Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2707Assert.Equal(0, ms.ParameterList.Parameters.Count); 2708Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 2709Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2770Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 2771Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2772Assert.Equal(0, ms.ParameterList.Parameters.Count); 2773Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 2774Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2817Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 2818Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2819Assert.Equal(0, ms.ParameterList.Parameters.Count); 2820Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 2821Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2867Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 2868Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2869Assert.Equal(0, ms.ParameterList.Parameters.Count); 2870Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 2871Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3015Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 3016Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3017Assert.Equal(1, ms.ParameterList.Parameters.Count); 3018Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3019Assert.Equal(0, ms.ParameterList.Parameters[0].Modifiers.Count); 3020Assert.NotNull(ms.ParameterList.Parameters[0].Type); 3021Assert.Equal("c", ms.ParameterList.Parameters[0].Type.ToString()); 3022Assert.NotEqual(default, ms.ParameterList.Parameters[0].Identifier); 3023Assert.Equal("d", ms.ParameterList.Parameters[0].Identifier.ToString()); 3024Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 3025Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3067Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 3068Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3070Assert.Equal(2, ms.ParameterList.Parameters.Count); 3072Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3073Assert.Equal(0, ms.ParameterList.Parameters[0].Modifiers.Count); 3074Assert.NotNull(ms.ParameterList.Parameters[0].Type); 3075Assert.Equal("c", ms.ParameterList.Parameters[0].Type.ToString()); 3076Assert.NotEqual(default, ms.ParameterList.Parameters[0].Identifier); 3077Assert.Equal("d", ms.ParameterList.Parameters[0].Identifier.ToString()); 3079Assert.Equal(0, ms.ParameterList.Parameters[1].AttributeLists.Count); 3080Assert.Equal(0, ms.ParameterList.Parameters[1].Modifiers.Count); 3081Assert.NotNull(ms.ParameterList.Parameters[1].Type); 3082Assert.Equal("e", ms.ParameterList.Parameters[1].Type.ToString()); 3083Assert.NotEqual(default, ms.ParameterList.Parameters[1].Identifier); 3084Assert.Equal("f", ms.ParameterList.Parameters[1].Identifier.ToString()); 3086Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 3087Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3128Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 3129Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3131Assert.Equal(1, ms.ParameterList.Parameters.Count); 3133Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3134Assert.Equal(1, ms.ParameterList.Parameters[0].Modifiers.Count); 3135Assert.Equal(mod, ms.ParameterList.Parameters[0].Modifiers[0].Kind()); 3136Assert.NotNull(ms.ParameterList.Parameters[0].Type); 3137Assert.Equal("c", ms.ParameterList.Parameters[0].Type.ToString()); 3138Assert.NotEqual(default, ms.ParameterList.Parameters[0].Identifier); 3139Assert.Equal("d", ms.ParameterList.Parameters[0].Identifier.ToString()); 3141Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 3142Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3193Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 3194Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3196Assert.Equal(1, ms.ParameterList.Parameters.Count); 3198Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3199Assert.Equal(0, ms.ParameterList.Parameters[0].Modifiers.Count); 3200Assert.Null(ms.ParameterList.Parameters[0].Type); 3201Assert.NotEqual(default, ms.ParameterList.Parameters[0].Identifier); 3202Assert.Equal(SyntaxKind.ArgListKeyword, ms.ParameterList.Parameters[0].Identifier.Kind()); 3204Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 3205Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3267Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 3268Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3269Assert.Equal(0, ms.ParameterList.Parameters.Count); 3270Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 3271Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3332Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 3333Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3334Assert.Equal(1, ms.ParameterList.Parameters.Count); 3335Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3336Assert.Equal(0, ms.ParameterList.Parameters[0].Modifiers.Count); 3337Assert.NotNull(ms.ParameterList.Parameters[0].Type); 3338Assert.Equal(typeText, ms.ParameterList.Parameters[0].Type.ToString()); 3339Assert.NotEqual(default, ms.ParameterList.Parameters[0].Identifier); 3340Assert.Equal("c", ms.ParameterList.Parameters[0].Identifier.ToString()); 3341Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 3342Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3384Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 3385Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3386Assert.Equal(0, ms.ParameterList.Parameters.Count); 3387Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 3388Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3432Assert.NotEqual(default, ms.ParameterList.OpenParenToken); 3433Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3434Assert.Equal(0, ms.ParameterList.Parameters.Count); 3435Assert.NotEqual(default, ms.ParameterList.CloseParenToken); 3436Assert.False(ms.ParameterList.CloseParenToken.IsMissing);
Parsing\ParserErrorMessageTests.cs (1)
3768Assert.Equal(SyntaxKind.InKeyword, methodDeclaration.ParameterList.Parameters.Single().Modifiers.Single().Kind());
Syntax\LambdaUtilitiesTests.cs (1)
59Assert.Equal("C", model.GetEnclosingSymbol(methodDef.ParameterList.CloseParenToken.SpanStart).ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\ClassificationHelpers.cs (1)
208if (methodDeclaration.ParameterList.Parameters is [var parameter, ..] && parameter.Modifiers.Any(SyntaxKind.ThisKeyword))
CodeGeneration\CSharpSyntaxGenerator.cs (3)
1788method.ReplaceNodes(method.ParameterList.Parameters, (_, p) => RemoveDefaultValue(p, removeDefaults)) 1801.WithParameterList(method.ParameterList.WithTrailingTrivia( 1802method.ParameterList.GetTrailingTrivia().Add(SyntaxFactory.ElasticMarker).AddRange(method.ConstraintClauses.Last().GetTrailingTrivia())));
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (4)
364parameterCount: method.ParameterList?.Parameters.Count ?? 0, 498GetSuffix('(', ')', method.ParameterList.Parameters); 619=> method.ParameterList.Parameters is [var parameter, ..] && parameter.Modifiers.Any(SyntaxKind.ThisKeyword); 647TryGetSimpleTypeName(methodDeclaration.ParameterList.Parameters[0].Type, typeParameterNames, out var targetTypeName, out var isArray);
Rename\LocalConflictVisitor.cs (1)
32var parameterTokens = node.ParameterList.Parameters.Select(p => p.Identifier);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
65return node != null && IsOnHeader(root, position, node, node.ParameterList);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Editing\SyntaxEditorTests.cs (1)
224var param = methodX.ParameterList.Parameters[0];
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
213Diag(DiagDescriptors.MissingLoggerParameter, method.ParameterList.GetLocation(), lm.Name);
Microsoft.Interop.SourceGeneration (1)
MethodSignatureDiagnosticLocations.cs (1)
57: this(syntax.Identifier.Text, syntax.ParameterList.Parameters.Select(p => p.Identifier.GetLocation()).ToImmutableArray(), syntax.Identifier.GetLocation())
Microsoft.ML.InternalCodeAnalyzer (2)
ContractsCheckAnalyzer.cs (1)
168var enclosingParams = ((node as MethodDeclarationSyntax)?.ParameterList
ContractsCheckNameofFixProvider.cs (1)
114var paramList = (temp as MethodDeclarationSyntax)?.ParameterList
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (3)
3586if (methodDeclaration.ParameterList == null || 3587methodDeclaration.ParameterList.Parameters.Count == 0) 3592return methodDeclaration.ParameterList.Parameters[0].Modifiers.Any(SyntaxKind.ThisKeyword);
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
204AppendParameterList(builder, methodDeclaration.ParameterList);
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
65return node != null && IsOnHeader(root, position, node, node.ParameterList);