873 references to MethodDeclaration
Microsoft.Analyzers.Extra (2)
AsyncMethodWithoutCancellation.cs (1)
112}, SyntaxKind.MethodDeclaration);
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
169foreach (var method in targetClass.Members.Where(m => m.IsKind(SyntaxKind.MethodDeclaration)).OfType<MethodDeclarationSyntax>())
Microsoft.CodeAnalysis.CSharp (24)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
473case SyntaxKind.MethodDeclaration: 1331if (memberSyntax.Kind() == SyntaxKind.MethodDeclaration)
Compilation\MemberSemanticModel.cs (1)
2171case SyntaxKind.MethodDeclaration:
Compilation\MethodBodySemanticModel.cs (1)
88case SyntaxKind.MethodDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (4)
820case SyntaxKind.MethodDeclaration: 852case SyntaxKind.MethodDeclaration: 1079case SyntaxKind.MethodDeclaration: 1626case SyntaxKind.MethodDeclaration:
Declarations\DeclarationTreeBuilder.cs (4)
1054if (member.Kind == SyntaxKind.MethodDeclaration) 1101case SyntaxKind.MethodDeclaration: 1153case SyntaxKind.MethodDeclaration: 1233case SyntaxKind.MethodDeclaration:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
577case SyntaxKind.MethodDeclaration: 597case SyntaxKind.MethodDeclaration:
Parser\LanguageParser.cs (3)
557or SyntaxKind.MethodDeclaration 2404case SyntaxKind.MethodDeclaration: 5078case SyntaxKind.MethodDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
275case SyntaxKind.MethodDeclaration: 388case SyntaxKind.MethodDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4962case SyntaxKind.MethodDeclaration:
Syntax\SyntaxExtensions.cs (2)
31case SyntaxKind.MethodDeclaration: 241case SyntaxKind.MethodDeclaration:
Syntax\SyntaxFacts.cs (1)
166case MethodDeclaration:
Syntax\SyntaxKindFacts.cs (1)
366case SyntaxKind.MethodDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
28[SyntaxKind.MethodDeclaration])
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
17.FirstOrDefault(node => node.Kind() is SyntaxKind.LocalFunctionStatement or SyntaxKind.MethodDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
51case SyntaxKind.MethodDeclaration: 82case SyntaxKind.MethodDeclaration: 104case SyntaxKind.MethodDeclaration: 122case SyntaxKind.MethodDeclaration: 146case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
254or SyntaxKind.MethodDeclaration 278or SyntaxKind.MethodDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
432case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
69case SyntaxKind.MethodDeclaration: 170case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1274case SyntaxKind.MethodDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
50if (node.Kind() is not SyntaxKind.MethodDeclaration and not SyntaxKind.PropertyDeclaration and not SyntaxKind.VariableDeclarator)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (1)
39or SyntaxKind.MethodDeclaration
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (1)
58or SyntaxKind.MethodDeclaration
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
121SyntaxKind.MethodDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
770case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
24{ SyntaxKind.MethodDeclaration, 7 }, 117case SyntaxKind.MethodDeclaration:
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
370case SyntaxKind.MethodDeclaration:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
314return ImmutableArray.Create(SyntaxKind.MethodDeclaration, SyntaxKind.ExpressionStatement, SyntaxKind.EqualsValueClause); 325Assert.NotEqual(SyntaxKind.MethodDeclaration, context.Node.Kind());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1008}, SyntaxKind.PropertyDeclaration, SyntaxKind.IndexerDeclaration, SyntaxKind.EventDeclaration, SyntaxKind.MethodDeclaration);
Microsoft.CodeAnalysis.CSharp.Features (22)
ChangeSignature\CSharpChangeSignatureService.cs (3)
43SyntaxKind.MethodDeclaration, 87SyntaxKind.MethodDeclaration, 301is SyntaxKind.MethodDeclaration
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (1)
74if (tokenParent.IsParentKind<MethodDeclarationSyntax>(SyntaxKind.MethodDeclaration, out var methodDeclaration))
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
62case SyntaxKind.MethodDeclaration: 124SyntaxKind.MethodDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
173case SyntaxKind.MethodDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
603case SyntaxKind.MethodDeclaration: 712case SyntaxKind.MethodDeclaration: 1446case SyntaxKind.MethodDeclaration:
ExtractMethod\CSharpMethodExtractor.cs (1)
165=> methodNames.FirstOrNull(t => !t.Parent.IsKind(SyntaxKind.MethodDeclaration));
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
43SyntaxKind.MethodDeclaration or
LineSeparators\CSharpLineSeparatorService.cs (1)
80case SyntaxKind.MethodDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
166case SyntaxKind.MethodDeclaration:
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
28[SyntaxKind.MethodDeclaration])
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
50if (node.Kind() is not SyntaxKind.MethodDeclaration and not SyntaxKind.PropertyDeclaration and not SyntaxKind.VariableDeclarator)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (1)
39or SyntaxKind.MethodDeclaration
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (1)
58or SyntaxKind.MethodDeclaration
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
121SyntaxKind.MethodDeclaration or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
275case SyntaxKind.MethodDeclaration: 388case SyntaxKind.MethodDeclaration:
Structure\Providers\MethodDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.MethodDeclaration));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
Diagnostics\Suppression\SuppressionTests.cs (4)
1068=> context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ClassDeclaration, SyntaxKind.EnumDeclaration, SyntaxKind.NamespaceDeclaration, SyntaxKind.MethodDeclaration, SyntaxKind.PropertyDeclaration, SyntaxKind.FieldDeclaration, SyntaxKind.EventDeclaration); 1084case SyntaxKind.MethodDeclaration: 2062=> context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ClassDeclaration, SyntaxKind.NamespaceDeclaration, SyntaxKind.MethodDeclaration); 2078case SyntaxKind.MethodDeclaration:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LocalFunctionTests.cs (1)
444var mMethod = (MethodDeclarationSyntax)newTree.FindNodeOrTokenByKind(SyntaxKind.MethodDeclaration, occurrence: 1).AsNode();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
3612Assert.Equal(SyntaxKind.MethodDeclaration, methodDecl.Kind());
Symbols\TypeTests.cs (1)
1679var mnode = (MethodDeclarationSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.MethodDeclaration);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (733)
IncrementalParsing\IncrementalParsingTests.cs (7)
86SyntaxKind.MethodDeclaration, 108SyntaxKind.MethodDeclaration, 228SyntaxKind.MethodDeclaration, 298SyntaxKind.MethodDeclaration, 379SyntaxKind.MethodDeclaration, 423SyntaxKind.MethodDeclaration, 680N(SyntaxKind.MethodDeclaration);
Parsing\AnonymousFunctionParsingTests.cs (25)
54N(SyntaxKind.MethodDeclaration); 155N(SyntaxKind.MethodDeclaration); 252N(SyntaxKind.MethodDeclaration); 353N(SyntaxKind.MethodDeclaration); 454N(SyntaxKind.MethodDeclaration); 558N(SyntaxKind.MethodDeclaration); 689N(SyntaxKind.MethodDeclaration); 807N(SyntaxKind.MethodDeclaration); 2301N(SyntaxKind.MethodDeclaration); 2381N(SyntaxKind.MethodDeclaration); 2498N(SyntaxKind.MethodDeclaration); 2646N(SyntaxKind.MethodDeclaration); 2794N(SyntaxKind.MethodDeclaration); 2920N(SyntaxKind.MethodDeclaration); 3056N(SyntaxKind.MethodDeclaration); 3179N(SyntaxKind.MethodDeclaration); 3319N(SyntaxKind.MethodDeclaration); 3472N(SyntaxKind.MethodDeclaration); 3625N(SyntaxKind.MethodDeclaration); 3774N(SyntaxKind.MethodDeclaration); 3919N(SyntaxKind.MethodDeclaration); 4051N(SyntaxKind.MethodDeclaration); 4200N(SyntaxKind.MethodDeclaration); 4362N(SyntaxKind.MethodDeclaration); 4524N(SyntaxKind.MethodDeclaration);
Parsing\AsyncParsingTests.cs (7)
53N(SyntaxKind.MethodDeclaration); 94N(SyntaxKind.MethodDeclaration); 134N(SyntaxKind.MethodDeclaration); 174N(SyntaxKind.MethodDeclaration); 214N(SyntaxKind.MethodDeclaration); 255N(SyntaxKind.MethodDeclaration); 300N(SyntaxKind.MethodDeclaration);
Parsing\AsyncStreamsParsingTests.cs (6)
53N(SyntaxKind.MethodDeclaration); 131N(SyntaxKind.MethodDeclaration); 212N(SyntaxKind.MethodDeclaration); 294N(SyntaxKind.MethodDeclaration); 393N(SyntaxKind.MethodDeclaration); 487N(SyntaxKind.MethodDeclaration);
Parsing\AwaitParsingTests.cs (9)
47N(SyntaxKind.MethodDeclaration); 112N(SyntaxKind.MethodDeclaration); 176N(SyntaxKind.MethodDeclaration); 241N(SyntaxKind.MethodDeclaration); 349N(SyntaxKind.MethodDeclaration); 1352N(SyntaxKind.MethodDeclaration); 1431N(SyntaxKind.MethodDeclaration); 1511N(SyntaxKind.MethodDeclaration); 1601N(SyntaxKind.MethodDeclaration);
Parsing\CollectionExpressionParsingTests.cs (54)
1396N(SyntaxKind.MethodDeclaration); 6256N(SyntaxKind.MethodDeclaration); 6321N(SyntaxKind.MethodDeclaration); 7975N(SyntaxKind.MethodDeclaration); 8014N(SyntaxKind.MethodDeclaration); 8120N(SyntaxKind.MethodDeclaration); 8159N(SyntaxKind.MethodDeclaration); 8273N(SyntaxKind.MethodDeclaration); 8312N(SyntaxKind.MethodDeclaration); 8429N(SyntaxKind.MethodDeclaration); 8468N(SyntaxKind.MethodDeclaration); 8573N(SyntaxKind.MethodDeclaration); 8612N(SyntaxKind.MethodDeclaration); 8728N(SyntaxKind.MethodDeclaration); 8767N(SyntaxKind.MethodDeclaration); 8866N(SyntaxKind.MethodDeclaration); 8944N(SyntaxKind.MethodDeclaration); 9022N(SyntaxKind.MethodDeclaration); 9104N(SyntaxKind.MethodDeclaration); 9391N(SyntaxKind.MethodDeclaration); 9550N(SyntaxKind.MethodDeclaration); 9709N(SyntaxKind.MethodDeclaration); 9868N(SyntaxKind.MethodDeclaration); 10026N(SyntaxKind.MethodDeclaration); 10139N(SyntaxKind.MethodDeclaration); 10260N(SyntaxKind.MethodDeclaration); 10403N(SyntaxKind.MethodDeclaration); 10524N(SyntaxKind.MethodDeclaration); 10665N(SyntaxKind.MethodDeclaration); 10822N(SyntaxKind.MethodDeclaration); 10973N(SyntaxKind.MethodDeclaration); 11154N(SyntaxKind.MethodDeclaration); 11311N(SyntaxKind.MethodDeclaration); 11506N(SyntaxKind.MethodDeclaration); 11673N(SyntaxKind.MethodDeclaration); 11816N(SyntaxKind.MethodDeclaration); 11989N(SyntaxKind.MethodDeclaration); 12149N(SyntaxKind.MethodDeclaration); 12238N(SyntaxKind.MethodDeclaration); 12327N(SyntaxKind.MethodDeclaration); 13997N(SyntaxKind.MethodDeclaration); 14189N(SyntaxKind.MethodDeclaration); 14395N(SyntaxKind.MethodDeclaration); 14631N(SyntaxKind.MethodDeclaration); 14867N(SyntaxKind.MethodDeclaration); 15105N(SyntaxKind.MethodDeclaration); 15319N(SyntaxKind.MethodDeclaration); 15571N(SyntaxKind.MethodDeclaration); 15725N(SyntaxKind.MethodDeclaration); 15903N(SyntaxKind.MethodDeclaration); 16089N(SyntaxKind.MethodDeclaration); 16291N(SyntaxKind.MethodDeclaration); 16503N(SyntaxKind.MethodDeclaration); 16689N(SyntaxKind.MethodDeclaration);
Parsing\DeclarationParsingTests.cs (17)
2498Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2544Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2590Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2693Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2761Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2808Assert.Equal(SyntaxKind.MethodDeclaration, structDecl.Members[0].Kind()); 2855Assert.Equal(SyntaxKind.MethodDeclaration, structDecl.Members[0].Kind()); 3007Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3059Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3120Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3185Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3259Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3324Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3376Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3422Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 6559N(SyntaxKind.MethodDeclaration); 8109N(SyntaxKind.MethodDeclaration);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (34)
107N(SyntaxKind.MethodDeclaration); 224N(SyntaxKind.MethodDeclaration); 289N(SyntaxKind.MethodDeclaration); 419N(SyntaxKind.MethodDeclaration); 499N(SyntaxKind.MethodDeclaration); 640N(SyntaxKind.MethodDeclaration); 720N(SyntaxKind.MethodDeclaration); 930N(SyntaxKind.MethodDeclaration); 1010N(SyntaxKind.MethodDeclaration); 1141N(SyntaxKind.MethodDeclaration); 1221N(SyntaxKind.MethodDeclaration); 1334N(SyntaxKind.MethodDeclaration); 1349N(SyntaxKind.MethodDeclaration); 1446N(SyntaxKind.MethodDeclaration); 1520N(SyntaxKind.MethodDeclaration); 1650N(SyntaxKind.MethodDeclaration); 1730N(SyntaxKind.MethodDeclaration); 2039N(SyntaxKind.MethodDeclaration); 2156N(SyntaxKind.MethodDeclaration); 2221N(SyntaxKind.MethodDeclaration); 2351N(SyntaxKind.MethodDeclaration); 2431N(SyntaxKind.MethodDeclaration); 2575N(SyntaxKind.MethodDeclaration); 2655N(SyntaxKind.MethodDeclaration); 2808N(SyntaxKind.MethodDeclaration); 2888N(SyntaxKind.MethodDeclaration); 3019N(SyntaxKind.MethodDeclaration); 3108N(SyntaxKind.MethodDeclaration); 3336N(SyntaxKind.MethodDeclaration); 3425N(SyntaxKind.MethodDeclaration); 3675N(SyntaxKind.MethodDeclaration); 3764N(SyntaxKind.MethodDeclaration); 3979N(SyntaxKind.MethodDeclaration); 4068N(SyntaxKind.MethodDeclaration);
Parsing\DeclarationScopeParsingTests.cs (24)
26N(SyntaxKind.MethodDeclaration); 73N(SyntaxKind.MethodDeclaration); 163N(SyntaxKind.MethodDeclaration); 246N(SyntaxKind.MethodDeclaration); 504N(SyntaxKind.MethodDeclaration); 553N(SyntaxKind.MethodDeclaration); 607N(SyntaxKind.MethodDeclaration); 685N(SyntaxKind.MethodDeclaration); 755N(SyntaxKind.MethodDeclaration); 802N(SyntaxKind.MethodDeclaration); 849N(SyntaxKind.MethodDeclaration); 1301N(SyntaxKind.MethodDeclaration); 1354N(SyntaxKind.MethodDeclaration); 1422N(SyntaxKind.MethodDeclaration); 1552N(SyntaxKind.MethodDeclaration); 1623N(SyntaxKind.MethodDeclaration); 1752N(SyntaxKind.MethodDeclaration); 3040N(SyntaxKind.MethodDeclaration); 3187N(SyntaxKind.MethodDeclaration); 3390N(SyntaxKind.MethodDeclaration); 3446N(SyntaxKind.MethodDeclaration); 8161N(SyntaxKind.MethodDeclaration); 8325N(SyntaxKind.MethodDeclaration); 11619N(SyntaxKind.MethodDeclaration);
Parsing\DeconstructionTests.cs (20)
56N(SyntaxKind.MethodDeclaration); 130N(SyntaxKind.MethodDeclaration); 208N(SyntaxKind.MethodDeclaration); 284N(SyntaxKind.MethodDeclaration); 372N(SyntaxKind.MethodDeclaration); 456N(SyntaxKind.MethodDeclaration); 531N(SyntaxKind.MethodDeclaration); 607N(SyntaxKind.MethodDeclaration); 699N(SyntaxKind.MethodDeclaration); 789N(SyntaxKind.MethodDeclaration); 902N(SyntaxKind.MethodDeclaration); 979N(SyntaxKind.MethodDeclaration); 1066N(SyntaxKind.MethodDeclaration); 1140N(SyntaxKind.MethodDeclaration); 1239N(SyntaxKind.MethodDeclaration); 1337N(SyntaxKind.MethodDeclaration); 1422N(SyntaxKind.MethodDeclaration); 1515N(SyntaxKind.MethodDeclaration); 1770N(SyntaxKind.MethodDeclaration); 3393N(SyntaxKind.MethodDeclaration);
Parsing\ExpressionParsingTests.cs (19)
3169N(SyntaxKind.MethodDeclaration); 3269N(SyntaxKind.MethodDeclaration); 3359N(SyntaxKind.MethodDeclaration); 3433N(SyntaxKind.MethodDeclaration); 3515N(SyntaxKind.MethodDeclaration); 3594N(SyntaxKind.MethodDeclaration); 3667N(SyntaxKind.MethodDeclaration); 3752N(SyntaxKind.MethodDeclaration); 3844N(SyntaxKind.MethodDeclaration); 3934N(SyntaxKind.MethodDeclaration); 4025N(SyntaxKind.MethodDeclaration); 4112N(SyntaxKind.MethodDeclaration); 4206N(SyntaxKind.MethodDeclaration); 4303N(SyntaxKind.MethodDeclaration); 4408N(SyntaxKind.MethodDeclaration); 4509N(SyntaxKind.MethodDeclaration); 4600N(SyntaxKind.MethodDeclaration); 4693N(SyntaxKind.MethodDeclaration); 6280N(SyntaxKind.MethodDeclaration);
Parsing\FieldKeywordParsingTests.cs (1)
2425N(SyntaxKind.MethodDeclaration);
Parsing\FileModifierParsingTests.cs (10)
751N(SyntaxKind.MethodDeclaration); 816N(SyntaxKind.MethodDeclaration); 1022N(SyntaxKind.MethodDeclaration); 1206N(SyntaxKind.MethodDeclaration); 2539N(SyntaxKind.MethodDeclaration); 2631N(SyntaxKind.MethodDeclaration); 2733N(SyntaxKind.MethodDeclaration); 2827N(SyntaxKind.MethodDeclaration); 3505N(SyntaxKind.MethodDeclaration); 3569N(SyntaxKind.MethodDeclaration);
Parsing\FunctionPointerTests.cs (1)
1718N(SyntaxKind.MethodDeclaration);
Parsing\LambdaAttributeParsingTests.cs (6)
3798N(SyntaxKind.MethodDeclaration); 3929N(SyntaxKind.MethodDeclaration); 4042N(SyntaxKind.MethodDeclaration); 4159N(SyntaxKind.MethodDeclaration); 4308N(SyntaxKind.MethodDeclaration); 4442N(SyntaxKind.MethodDeclaration);
Parsing\LambdaParameterParsingTests.cs (5)
63N(SyntaxKind.MethodDeclaration); 174N(SyntaxKind.MethodDeclaration); 293N(SyntaxKind.MethodDeclaration); 419N(SyntaxKind.MethodDeclaration); 548N(SyntaxKind.MethodDeclaration);
Parsing\LocalFunctionParsingTests.cs (31)
115N(SyntaxKind.MethodDeclaration); 153N(SyntaxKind.MethodDeclaration); 194N(SyntaxKind.MethodDeclaration); 239N(SyntaxKind.MethodDeclaration); 277N(SyntaxKind.MethodDeclaration); 309N(SyntaxKind.MethodDeclaration); 381N(SyntaxKind.MethodDeclaration); 575N(SyntaxKind.MethodDeclaration); 644N(SyntaxKind.MethodDeclaration); 735N(SyntaxKind.MethodDeclaration); 821N(SyntaxKind.MethodDeclaration); 925N(SyntaxKind.MethodDeclaration); 1005N(SyntaxKind.MethodDeclaration); 1099N(SyntaxKind.MethodDeclaration); 1229.Where(n => n.Kind() == SyntaxKind.MethodDeclaration) 1412N(SyntaxKind.MethodDeclaration); 1461N(SyntaxKind.MethodDeclaration); 1509N(SyntaxKind.MethodDeclaration); 1562N(SyntaxKind.MethodDeclaration); 1611N(SyntaxKind.MethodDeclaration); 1752N(SyntaxKind.MethodDeclaration); 1867N(SyntaxKind.MethodDeclaration); 2052N(SyntaxKind.MethodDeclaration); 2148N(SyntaxKind.MethodDeclaration); 2231N(SyntaxKind.MethodDeclaration); 2321N(SyntaxKind.MethodDeclaration); 2418N(SyntaxKind.MethodDeclaration); 2587N(SyntaxKind.MethodDeclaration); 2677N(SyntaxKind.MethodDeclaration); 2910N(SyntaxKind.MethodDeclaration); 3154N(SyntaxKind.MethodDeclaration);
Parsing\MemberDeclarationParsingTests.cs (73)
174N(SyntaxKind.MethodDeclaration); 784N(SyntaxKind.MethodDeclaration); 832N(SyntaxKind.MethodDeclaration); 965N(SyntaxKind.MethodDeclaration); 1012N(SyntaxKind.MethodDeclaration); 1484N(SyntaxKind.MethodDeclaration); 1511N(SyntaxKind.MethodDeclaration); 8713N(SyntaxKind.MethodDeclaration); 8771N(SyntaxKind.MethodDeclaration); 8829N(SyntaxKind.MethodDeclaration); 8898N(SyntaxKind.MethodDeclaration); 8952N(SyntaxKind.MethodDeclaration); 9014N(SyntaxKind.MethodDeclaration); 9076N(SyntaxKind.MethodDeclaration); 9118N(SyntaxKind.MethodDeclaration); 9181N(SyntaxKind.MethodDeclaration); 9373N(SyntaxKind.MethodDeclaration); 10185N(SyntaxKind.MethodDeclaration); 10233N(SyntaxKind.MethodDeclaration); 10525N(SyntaxKind.MethodDeclaration); 10610N(SyntaxKind.MethodDeclaration); 10718N(SyntaxKind.MethodDeclaration); 10843N(SyntaxKind.MethodDeclaration); 11018N(SyntaxKind.MethodDeclaration); 11192N(SyntaxKind.MethodDeclaration); 11361N(SyntaxKind.MethodDeclaration); 11384N(SyntaxKind.MethodDeclaration); 11487N(SyntaxKind.MethodDeclaration); 11811N(SyntaxKind.MethodDeclaration); 12123N(SyntaxKind.MethodDeclaration); 12193N(SyntaxKind.MethodDeclaration); 12264N(SyntaxKind.MethodDeclaration); 12355N(SyntaxKind.MethodDeclaration); 12381N(SyntaxKind.MethodDeclaration); 12432N(SyntaxKind.MethodDeclaration); 12697N(SyntaxKind.MethodDeclaration); 12781N(SyntaxKind.MethodDeclaration); 12856N(SyntaxKind.MethodDeclaration); 12939N(SyntaxKind.MethodDeclaration); 13025N(SyntaxKind.MethodDeclaration); 13109N(SyntaxKind.MethodDeclaration); 13193N(SyntaxKind.MethodDeclaration); 13272N(SyntaxKind.MethodDeclaration); 13351N(SyntaxKind.MethodDeclaration); 13438N(SyntaxKind.MethodDeclaration); 13525N(SyntaxKind.MethodDeclaration); 13616N(SyntaxKind.MethodDeclaration); 13960N(SyntaxKind.MethodDeclaration); 14039N(SyntaxKind.MethodDeclaration); 14641N(SyntaxKind.MethodDeclaration); 14716N(SyntaxKind.MethodDeclaration); 14791N(SyntaxKind.MethodDeclaration); 14874N(SyntaxKind.MethodDeclaration); 14983N(SyntaxKind.MethodDeclaration); 15117N(SyntaxKind.MethodDeclaration); 15454N(SyntaxKind.MethodDeclaration); 15533N(SyntaxKind.MethodDeclaration); 15612N(SyntaxKind.MethodDeclaration); 15695N(SyntaxKind.MethodDeclaration); 15782N(SyntaxKind.MethodDeclaration); 15879N(SyntaxKind.MethodDeclaration); 15960N(SyntaxKind.MethodDeclaration); 16057N(SyntaxKind.MethodDeclaration); 16165N(SyntaxKind.MethodDeclaration); 16318N(SyntaxKind.MethodDeclaration); 16491N(SyntaxKind.MethodDeclaration); 16603N(SyntaxKind.MethodDeclaration); 16726N(SyntaxKind.MethodDeclaration); 16907N(SyntaxKind.MethodDeclaration); 17866N(SyntaxKind.MethodDeclaration); 17921N(SyntaxKind.MethodDeclaration); 18001N(SyntaxKind.MethodDeclaration); 18093N(SyntaxKind.MethodDeclaration);
Parsing\NameParsingTests.cs (5)
842N(SyntaxKind.MethodDeclaration); 940N(SyntaxKind.MethodDeclaration); 1062N(SyntaxKind.MethodDeclaration); 1187N(SyntaxKind.MethodDeclaration); 1337N(SyntaxKind.MethodDeclaration);
Parsing\NullableParsingTests.cs (1)
1336N(SyntaxKind.MethodDeclaration);
Parsing\ParserRegressionTests.cs (6)
271N(SyntaxKind.MethodDeclaration); 364N(SyntaxKind.MethodDeclaration); 498N(SyntaxKind.MethodDeclaration); 588N(SyntaxKind.MethodDeclaration); 678N(SyntaxKind.MethodDeclaration); 766N(SyntaxKind.MethodDeclaration);
Parsing\ParsingErrorRecoveryTests.cs (148)
96N(SyntaxKind.MethodDeclaration); 114N(SyntaxKind.MethodDeclaration); 1700Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1718Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1737Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1755Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1775Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1792Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1809Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1827Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1844Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1863Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1864Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1882Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1883Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1902Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1903Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1921Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1922Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1942Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1943Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1960Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1977Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 2229Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 2269Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 2290Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 2310Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 2332Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 3006Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 3024Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 3041Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3064Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3088Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3112Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3134Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3157Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3180Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3203Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3226Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3249Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3270Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3291Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3312Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3333Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3354Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3375Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3397Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3420Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3443Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3466Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3490Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3513Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3536Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3579Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3604Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3629Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3655Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3679Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3703Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3728Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3752Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3776Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3800Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3825Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3849Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3873Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3898Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3924Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3950Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3977Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4002Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4027Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4053Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4074Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4119Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4140Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4161Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4182Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4204Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4226Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4249Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4272Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4293Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4316Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4339Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4365Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4387Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4413Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4440Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4461Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4484Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4509Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4534Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4556Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4581Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4607Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4634Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4661Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4689Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4716Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4743Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4772Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4801Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4831Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4860Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4889Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4916Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4943Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4970Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4998Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5025Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5053Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5079Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5109Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5138Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5168Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5201N(SyntaxKind.MethodDeclaration); 5313N(SyntaxKind.MethodDeclaration); 5460N(SyntaxKind.MethodDeclaration); 5573N(SyntaxKind.MethodDeclaration); 5710N(SyntaxKind.MethodDeclaration); 5821Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5860Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5889Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5918Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5948Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5977Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6011Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6038Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6065Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6092Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6120Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6147Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6177Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6208Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6236Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6283Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6317Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6347Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6430Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 6455Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 6630Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6675Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6719Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6768Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6816Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6863Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6921Assert.Equal(SyntaxKind.MethodDeclaration, subitem1.Kind());
Parsing\RecordParsing.cs (2)
705N(SyntaxKind.MethodDeclaration); 1382N(SyntaxKind.MethodDeclaration);
Parsing\RefFieldParsingTests.cs (1)
660N(SyntaxKind.MethodDeclaration);
Parsing\RefReadonlyTests.cs (17)
512N(SyntaxKind.MethodDeclaration); 555N(SyntaxKind.MethodDeclaration); 599N(SyntaxKind.MethodDeclaration); 642N(SyntaxKind.MethodDeclaration); 686N(SyntaxKind.MethodDeclaration); 730N(SyntaxKind.MethodDeclaration); 775N(SyntaxKind.MethodDeclaration); 819N(SyntaxKind.MethodDeclaration); 863N(SyntaxKind.MethodDeclaration); 907N(SyntaxKind.MethodDeclaration); 961N(SyntaxKind.MethodDeclaration); 1023N(SyntaxKind.MethodDeclaration); 1085N(SyntaxKind.MethodDeclaration); 1146N(SyntaxKind.MethodDeclaration); 1198N(SyntaxKind.MethodDeclaration); 1241N(SyntaxKind.MethodDeclaration); 1287N(SyntaxKind.MethodDeclaration);
Parsing\ScriptParsingTests.cs (53)
139N(SyntaxKind.MethodDeclaration); 484N(SyntaxKind.MethodDeclaration); 516N(SyntaxKind.MethodDeclaration); 542N(SyntaxKind.MethodDeclaration); 581N(SyntaxKind.MethodDeclaration); 609N(SyntaxKind.MethodDeclaration); 649N(SyntaxKind.MethodDeclaration); 690N(SyntaxKind.MethodDeclaration); 719N(SyntaxKind.MethodDeclaration); 748N(SyntaxKind.MethodDeclaration); 783N(SyntaxKind.MethodDeclaration); 1260N(SyntaxKind.MethodDeclaration); 1759N(SyntaxKind.MethodDeclaration); 1919N(SyntaxKind.MethodDeclaration); 2161N(SyntaxKind.MethodDeclaration); 2179N(SyntaxKind.MethodDeclaration); 2198N(SyntaxKind.MethodDeclaration); 2229N(SyntaxKind.MethodDeclaration); 2324N(SyntaxKind.MethodDeclaration); 3269N(SyntaxKind.MethodDeclaration); 3314N(SyntaxKind.MethodDeclaration); 3365N(SyntaxKind.MethodDeclaration); 3408N(SyntaxKind.MethodDeclaration); 3459N(SyntaxKind.MethodDeclaration); 3528N(SyntaxKind.MethodDeclaration); 3586N(SyntaxKind.MethodDeclaration); 3661N(SyntaxKind.MethodDeclaration); 3705N(SyntaxKind.MethodDeclaration); 3766N(SyntaxKind.MethodDeclaration); 3810N(SyntaxKind.MethodDeclaration); 3858N(SyntaxKind.MethodDeclaration); 3906N(SyntaxKind.MethodDeclaration); 3954N(SyntaxKind.MethodDeclaration); 4019N(SyntaxKind.MethodDeclaration); 4072N(SyntaxKind.MethodDeclaration); 4116N(SyntaxKind.MethodDeclaration); 4159N(SyntaxKind.MethodDeclaration); 4203N(SyntaxKind.MethodDeclaration); 4248N(SyntaxKind.MethodDeclaration); 4291N(SyntaxKind.MethodDeclaration); 4338N(SyntaxKind.MethodDeclaration); 4389N(SyntaxKind.MethodDeclaration); 4446N(SyntaxKind.MethodDeclaration); 4505N(SyntaxKind.MethodDeclaration); 8573N(SyntaxKind.MethodDeclaration); 8614N(SyntaxKind.MethodDeclaration); 8661N(SyntaxKind.MethodDeclaration); 8710N(SyntaxKind.MethodDeclaration); 8759N(SyntaxKind.MethodDeclaration); 9248N(SyntaxKind.MethodDeclaration); 9319N(SyntaxKind.MethodDeclaration); 9376N(SyntaxKind.MethodDeclaration); 9434N(SyntaxKind.MethodDeclaration);
Parsing\StatementAttributeParsingTests.cs (85)
38N(SyntaxKind.MethodDeclaration); 104N(SyntaxKind.MethodDeclaration); 171N(SyntaxKind.MethodDeclaration); 259N(SyntaxKind.MethodDeclaration); 354N(SyntaxKind.MethodDeclaration); 439N(SyntaxKind.MethodDeclaration); 520N(SyntaxKind.MethodDeclaration); 586N(SyntaxKind.MethodDeclaration); 655N(SyntaxKind.MethodDeclaration); 729N(SyntaxKind.MethodDeclaration); 806N(SyntaxKind.MethodDeclaration); 881N(SyntaxKind.MethodDeclaration); 956N(SyntaxKind.MethodDeclaration); 1034N(SyntaxKind.MethodDeclaration); 1108N(SyntaxKind.MethodDeclaration); 1210N(SyntaxKind.MethodDeclaration); 1344N(SyntaxKind.MethodDeclaration); 1420N(SyntaxKind.MethodDeclaration); 1506N(SyntaxKind.MethodDeclaration); 1590N(SyntaxKind.MethodDeclaration); 1709N(SyntaxKind.MethodDeclaration); 1779N(SyntaxKind.MethodDeclaration); 1849N(SyntaxKind.MethodDeclaration); 1919N(SyntaxKind.MethodDeclaration); 2004N(SyntaxKind.MethodDeclaration); 2101N(SyntaxKind.MethodDeclaration); 2177N(SyntaxKind.MethodDeclaration); 2253N(SyntaxKind.MethodDeclaration); 2333N(SyntaxKind.MethodDeclaration); 2430N(SyntaxKind.MethodDeclaration); 2558N(SyntaxKind.MethodDeclaration); 2662N(SyntaxKind.MethodDeclaration); 2741N(SyntaxKind.MethodDeclaration); 2826N(SyntaxKind.MethodDeclaration); 2929N(SyntaxKind.MethodDeclaration); 3014N(SyntaxKind.MethodDeclaration); 3117N(SyntaxKind.MethodDeclaration); 3196N(SyntaxKind.MethodDeclaration); 3275N(SyntaxKind.MethodDeclaration); 3358N(SyntaxKind.MethodDeclaration); 3438N(SyntaxKind.MethodDeclaration); 3520N(SyntaxKind.MethodDeclaration); 3602N(SyntaxKind.MethodDeclaration); 3692N(SyntaxKind.MethodDeclaration); 3773N(SyntaxKind.MethodDeclaration); 3847N(SyntaxKind.MethodDeclaration); 3940N(SyntaxKind.MethodDeclaration); 4023N(SyntaxKind.MethodDeclaration); 4108N(SyntaxKind.MethodDeclaration); 4193N(SyntaxKind.MethodDeclaration); 4275N(SyntaxKind.MethodDeclaration); 4352N(SyntaxKind.MethodDeclaration); 4440N(SyntaxKind.MethodDeclaration); 4529N(SyntaxKind.MethodDeclaration); 4626N(SyntaxKind.MethodDeclaration); 4704N(SyntaxKind.MethodDeclaration); 4779N(SyntaxKind.MethodDeclaration); 4874N(SyntaxKind.MethodDeclaration); 4973N(SyntaxKind.MethodDeclaration); 5050N(SyntaxKind.MethodDeclaration); 5122N(SyntaxKind.MethodDeclaration); 5210N(SyntaxKind.MethodDeclaration); 5288N(SyntaxKind.MethodDeclaration); 5374N(SyntaxKind.MethodDeclaration); 5451N(SyntaxKind.MethodDeclaration); 5536N(SyntaxKind.MethodDeclaration); 5645N(SyntaxKind.MethodDeclaration); 5745N(SyntaxKind.MethodDeclaration); 5851N(SyntaxKind.MethodDeclaration); 5950N(SyntaxKind.MethodDeclaration); 6046N(SyntaxKind.MethodDeclaration); 6138N(SyntaxKind.MethodDeclaration); 6216N(SyntaxKind.MethodDeclaration); 6308N(SyntaxKind.MethodDeclaration); 6386N(SyntaxKind.MethodDeclaration); 6465N(SyntaxKind.MethodDeclaration); 6552N(SyntaxKind.MethodDeclaration); 6657N(SyntaxKind.MethodDeclaration); 6796N(SyntaxKind.MethodDeclaration); 6890N(SyntaxKind.MethodDeclaration); 6976N(SyntaxKind.MethodDeclaration); 7059N(SyntaxKind.MethodDeclaration); 7150N(SyntaxKind.MethodDeclaration); 7251N(SyntaxKind.MethodDeclaration); 7359N(SyntaxKind.MethodDeclaration);
Parsing\StatementParsingTests.cs (6)
2704N(SyntaxKind.MethodDeclaration); 4309N(SyntaxKind.MethodDeclaration); 4446N(SyntaxKind.MethodDeclaration); 4610N(SyntaxKind.MethodDeclaration); 5832N(SyntaxKind.MethodDeclaration); 5926N(SyntaxKind.MethodDeclaration);
Parsing\SwitchExpressionParsingTests.cs (20)
499N(SyntaxKind.MethodDeclaration); 584N(SyntaxKind.MethodDeclaration); 673N(SyntaxKind.MethodDeclaration); 756N(SyntaxKind.MethodDeclaration); 835N(SyntaxKind.MethodDeclaration); 923N(SyntaxKind.MethodDeclaration); 1018N(SyntaxKind.MethodDeclaration); 1100N(SyntaxKind.MethodDeclaration); 1179N(SyntaxKind.MethodDeclaration); 1273N(SyntaxKind.MethodDeclaration); 1380N(SyntaxKind.MethodDeclaration); 1475N(SyntaxKind.MethodDeclaration); 1554N(SyntaxKind.MethodDeclaration); 1637N(SyntaxKind.MethodDeclaration); 1714N(SyntaxKind.MethodDeclaration); 1788N(SyntaxKind.MethodDeclaration); 1864N(SyntaxKind.MethodDeclaration); 1940N(SyntaxKind.MethodDeclaration); 2020N(SyntaxKind.MethodDeclaration); 2106N(SyntaxKind.MethodDeclaration);
Parsing\TopLevelStatementsParsingTests.cs (1)
1264N(SyntaxKind.MethodDeclaration);
Parsing\TypeArgumentListParsingTests.cs (21)
46N(SyntaxKind.MethodDeclaration); 162N(SyntaxKind.MethodDeclaration); 290N(SyntaxKind.MethodDeclaration); 423N(SyntaxKind.MethodDeclaration); 571N(SyntaxKind.MethodDeclaration); 716N(SyntaxKind.MethodDeclaration); 1031N(SyntaxKind.MethodDeclaration); 1170N(SyntaxKind.MethodDeclaration); 1312N(SyntaxKind.MethodDeclaration); 1445N(SyntaxKind.MethodDeclaration); 1565N(SyntaxKind.MethodDeclaration); 1669N(SyntaxKind.MethodDeclaration); 1770N(SyntaxKind.MethodDeclaration); 1892N(SyntaxKind.MethodDeclaration); 2025N(SyntaxKind.MethodDeclaration); 2159N(SyntaxKind.MethodDeclaration); 2290N(SyntaxKind.MethodDeclaration); 2391N(SyntaxKind.MethodDeclaration); 2500N(SyntaxKind.MethodDeclaration); 2602N(SyntaxKind.MethodDeclaration); 2720N(SyntaxKind.MethodDeclaration);
Parsing\UsingDirectiveParsingTests.cs (11)
2130N(SyntaxKind.MethodDeclaration); 2204N(SyntaxKind.MethodDeclaration); 2281N(SyntaxKind.MethodDeclaration); 2358N(SyntaxKind.MethodDeclaration); 2434N(SyntaxKind.MethodDeclaration); 2517N(SyntaxKind.MethodDeclaration); 2612N(SyntaxKind.MethodDeclaration); 2742N(SyntaxKind.MethodDeclaration); 2866N(SyntaxKind.MethodDeclaration); 2984N(SyntaxKind.MethodDeclaration); 3082N(SyntaxKind.MethodDeclaration);
Parsing\ValueTupleTests.cs (4)
43N(SyntaxKind.MethodDeclaration); 126N(SyntaxKind.MethodDeclaration); 450N(SyntaxKind.MethodDeclaration); 522N(SyntaxKind.MethodDeclaration);
Syntax\SyntaxNodeTests.cs (3)
825Assert.Equal(SyntaxKind.MethodDeclaration, m1.Kind()); 826Assert.Equal(SyntaxKind.MethodDeclaration, m2.Kind()); 2002Assert.Equal(SyntaxKind.MethodDeclaration, tree.GetCompilationUnitRoot().ChildNodesAndTokens()[0].ChildNodesAndTokens()[3].Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (29)
CodeGeneration\CSharpSyntaxGenerator.cs (13)
247modifiers: AsModifierList(accessibility, modifiers, SyntaxKind.MethodDeclaration), 628SyntaxKind.MethodDeclaration => ((MethodDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier), 649case SyntaxKind.MethodDeclaration: 816case SyntaxKind.MethodDeclaration: 1057case SyntaxKind.MethodDeclaration: 1559case SyntaxKind.MethodDeclaration: 1968case SyntaxKind.MethodDeclaration: 2008SyntaxKind.MethodDeclaration => ((MethodDeclarationSyntax)declaration).WithReturnType((TypeSyntax)type), 2232case SyntaxKind.MethodDeclaration: 2299case SyntaxKind.MethodDeclaration: 2355case SyntaxKind.MethodDeclaration: 2482SyntaxKind.MethodDeclaration => ((MethodDeclarationSyntax)declaration).Body?.Statements, 2508case SyntaxKind.MethodDeclaration:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
350case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
17.FirstOrDefault(node => node.Kind() is SyntaxKind.LocalFunctionStatement or SyntaxKind.MethodDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
51case SyntaxKind.MethodDeclaration: 82case SyntaxKind.MethodDeclaration: 104case SyntaxKind.MethodDeclaration: 122case SyntaxKind.MethodDeclaration: 146case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
254or SyntaxKind.MethodDeclaration 278or SyntaxKind.MethodDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
432case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
69case SyntaxKind.MethodDeclaration: 170case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1274case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
770case SyntaxKind.MethodDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
24{ SyntaxKind.MethodDeclaration, 7 }, 117case SyntaxKind.MethodDeclaration:
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SyntaxPathTests.cs (5)
163Assert.Equal(SyntaxKind.MethodDeclaration, n1.Kind()); 166Assert.Equal(SyntaxKind.MethodDeclaration, n2.Kind()); 169Assert.Equal(SyntaxKind.MethodDeclaration, n3.Kind()); 231Assert.Equal(SyntaxKind.MethodDeclaration, n1.Kind()); 234Assert.Equal(SyntaxKind.MethodDeclaration, n2.Kind());
Microsoft.Gen.Metrics (1)
Parser.cs (1)
81foreach (var memberSyntax in typeDeclaration.Members.Where(x => x.IsKind(SyntaxKind.MethodDeclaration)))
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
81foreach (var memberSyntax in typeDeclaration.Members.Where(x => x.IsKind(SyntaxKind.MethodDeclaration)))
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\AddMarshalAsToElementFixer.cs (1)
58if (node.IsKind(SyntaxKind.MethodDeclaration))
ComInterfaceGenerator.cs (1)
369var methodSyntaxTemplate = new ContainingSyntax(new SyntaxTokenList(syntax.Modifiers.Where(static m => !m.IsKind(SyntaxKind.NewKeyword))).StripAccessibilityModifiers(), SyntaxKind.MethodDeclaration, syntax.Identifier, syntax.TypeParameterList);
VtableIndexStubGenerator.cs (1)
286var methodSyntaxTemplate = new ContainingSyntax(syntax.Modifiers.StripAccessibilityModifiers(), SyntaxKind.MethodDeclaration, syntax.Identifier, syntax.TypeParameterList);
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
206var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
JSImportGenerator.cs (1)
186var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
310var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
216var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
Microsoft.ML.InternalCodeAnalyzer (3)
ContractsCheckAnalyzer.cs (1)
164while (node != null && !node.IsKind(SyntaxKind.MethodDeclaration) && !node.IsKind(SyntaxKind.ConstructorDeclaration))
ContractsCheckNameofFixProvider.cs (1)
108while (temp != null && !temp.IsKind(SyntaxKind.MethodDeclaration) && !temp.IsKind(SyntaxKind.ConstructorDeclaration))
NameAnalyzer.cs (1)
85context.RegisterSyntaxNodeAction(AnalyzeMethod, SyntaxKind.MethodDeclaration);
Microsoft.VisualStudio.LanguageServices.CSharp (15)
CodeModel\CSharpCodeModelService.cs (8)
104case SyntaxKind.MethodDeclaration: 159case SyntaxKind.MethodDeclaration: 556case SyntaxKind.MethodDeclaration: 609case SyntaxKind.MethodDeclaration: 810case SyntaxKind.MethodDeclaration: 891case SyntaxKind.MethodDeclaration: 3506case SyntaxKind.MethodDeclaration: 3603if (node == null || node.Kind() != SyntaxKind.MethodDeclaration ||
CodeModel\CSharpCodeModelService.NodeLocator.cs (4)
50case SyntaxKind.MethodDeclaration: 101case SyntaxKind.MethodDeclaration: 394case SyntaxKind.MethodDeclaration: 957case SyntaxKind.MethodDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
202case SyntaxKind.MethodDeclaration:
Progression\CSharpProgressionLanguageService.cs (1)
71SyntaxKind.MethodDeclaration or
Utilities\BlankLineInGeneratedMethodFormattingRule.cs (1)
28currentToken.Parent.Parent.Kind() == SyntaxKind.MethodDeclaration)